From 99b8a5110163de995d09cc0b8ae900f574f15824 Mon Sep 17 00:00:00 2001 From: Bridger Maxwell Date: Wed, 28 Mar 2012 01:00:33 -0700 Subject: [PATCH] Removed debug comments. --- static/js/CodeMirror/codemirror.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/static/js/CodeMirror/codemirror.js b/static/js/CodeMirror/codemirror.js index f517176c46..ed92bc8378 100644 --- a/static/js/CodeMirror/codemirror.js +++ b/static/js/CodeMirror/codemirror.js @@ -498,17 +498,17 @@ var CodeMirror = (function() { if (!bound) return false; } var prevShift = shiftSelecting; - // try { //TODO: Reenable this try/catch + try { if (options.readOnly) suppressEdits = true; if (dropShift) shiftSelecting = null; bound(instance); - // } catch(e) { - // if (e != Pass) throw e; - // return false; - // } finally { - // shiftSelecting = prevShift; - // suppressEdits = false; - // } + } catch(e) { + if (e != Pass) throw e; + return false; + } finally { + shiftSelecting = prevShift; + suppressEdits = false; + } return true; } function handleKeyBinding(e) {