diff options
author | Pushkar Joshi | 2012-05-07 11:00:22 -0700 |
---|---|---|
committer | Pushkar Joshi | 2012-05-07 11:00:22 -0700 |
commit | e5ae6e0b6e54db0e6efd75d1f14cb791060ed67a (patch) | |
tree | e84d2dc5033c1b5c1b993662660a90af12584b69 /imports/codemirror/lib/util/javascript-hint.js | |
parent | ba890518b5a35d5e6893f9fc72d2eee30ae07e17 (diff) | |
parent | 526e423e4a2734c2b139af23911e912452a4443f (diff) | |
download | ninja-e5ae6e0b6e54db0e6efd75d1f14cb791060ed67a.tar.gz |
Merge branch 'master' into pentool
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]; |