diff options
author | Ananya Sen | 2012-07-16 16:04:05 -0700 |
---|---|---|
committer | Ananya Sen | 2012-07-16 16:04:05 -0700 |
commit | 0e04fff0ea80fa5cbe96b8354db38bd334aea83a (patch) | |
tree | 212d164c0f83d80394e34f1df532ea0461ad328d /imports/codemirror/lib/util/overlay.js | |
parent | 5146f224258929415adf4a8022e492454b4e2476 (diff) | |
download | ninja-0e04fff0ea80fa5cbe96b8354db38bd334aea83a.tar.gz |
upgrade to codemirror 2.3
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Conflicts:
js/code-editor/codemirror-ninja/theme/lesser-dark-ninja.css
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'imports/codemirror/lib/util/overlay.js')
-rw-r--r-- | imports/codemirror/lib/util/overlay.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/imports/codemirror/lib/util/overlay.js b/imports/codemirror/lib/util/overlay.js index c4cdf9fc..1d5df6c6 100644 --- a/imports/codemirror/lib/util/overlay.js +++ b/imports/codemirror/lib/util/overlay.js | |||
@@ -6,7 +6,8 @@ | |||
6 | // overlay wins, unless the combine argument was true, in which case | 6 | // overlay wins, unless the combine argument was true, in which case |
7 | // the styles are combined. | 7 | // the styles are combined. |
8 | 8 | ||
9 | CodeMirror.overlayParser = function(base, overlay, combine) { | 9 | // overlayParser is the old, deprecated name |
10 | CodeMirror.overlayMode = CodeMirror.overlayParser = function(base, overlay, combine) { | ||
10 | return { | 11 | return { |
11 | startState: function() { | 12 | startState: function() { |
12 | return { | 13 | return { |
@@ -43,7 +44,7 @@ CodeMirror.overlayParser = function(base, overlay, combine) { | |||
43 | else return state.overlayCur; | 44 | else return state.overlayCur; |
44 | }, | 45 | }, |
45 | 46 | ||
46 | indent: function(state, textAfter) { | 47 | indent: base.indent && function(state, textAfter) { |
47 | return base.indent(state.base, textAfter); | 48 | return base.indent(state.base, textAfter); |
48 | }, | 49 | }, |
49 | electricChars: base.electricChars | 50 | electricChars: base.electricChars |