diff options
author | Valerio Virgillito | 2012-05-03 16:18:11 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-03 16:18:11 -0700 |
commit | f7a493acab51684bc557174ebaba6e80a4869df7 (patch) | |
tree | 3d1940acfba351b1aaba4c82a251522de286a0ae /imports/codemirror/lib/util/javascript-hint.js | |
parent | 882f4f4b7427170ff3c3fc76a0ccd727c022bb63 (diff) | |
parent | fec9ccee11ea21ffc95edce6e89d0d302b63e3d8 (diff) | |
download | ninja-f7a493acab51684bc557174ebaba6e80a4869df7.tar.gz |
Merge branch 'refs/heads/master' into data-id
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]; |