diff options
author | Ananya Sen | 2012-04-04 12:27:35 -0700 |
---|---|---|
committer | Ananya Sen | 2012-04-04 12:27:35 -0700 |
commit | 671d2b94996ac71d56b2d05d5fe694ed7d84fa59 (patch) | |
tree | 8a6b6437567b9e359717fac73891605d60748823 /imports/codemirror/lib/util/javascript-hint.js | |
parent | e5dc1a5f35c2c6f3273e89109f1be445471b2dec (diff) | |
download | ninja-671d2b94996ac71d56b2d05d5fe694ed7d84fa59.tar.gz |
upgrading to CodeMirror 2.23, since it has an important fix to Not close Ninja, if backspace is pressed while autocomplete dropdown is open.
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'imports/codemirror/lib/util/javascript-hint.js')
-rw-r--r-- | imports/codemirror/lib/util/javascript-hint.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/imports/codemirror/lib/util/javascript-hint.js b/imports/codemirror/lib/util/javascript-hint.js index 2b904a51..2117e5af 100644 --- a/imports/codemirror/lib/util/javascript-hint.js +++ b/imports/codemirror/lib/util/javascript-hint.js | |||
@@ -113,8 +113,10 @@ | |||
113 | base = 1; | 113 | base = 1; |
114 | else if (obj.className == "function") { | 114 | else if (obj.className == "function") { |
115 | if (window.jQuery != null && (obj.string == '$' || obj.string == 'jQuery') && | 115 | if (window.jQuery != null && (obj.string == '$' || obj.string == 'jQuery') && |
116 | (typeof jQuery == 'function')) base = jQuery(); | 116 | (typeof window.jQuery == 'function')) |
117 | else if (window._ != null && (obj.string == '_') && (typeof _ == 'function')) base = _(); | 117 | base = window.jQuery(); |
118 | else if (window._ != null && (obj.string == '_') && (typeof window._ == 'function')) | ||
119 | base = window._(); | ||
118 | } | 120 | } |
119 | while (base != null && context.length) | 121 | while (base != null && context.length) |
120 | base = base[context.pop().string]; | 122 | base = base[context.pop().string]; |