Skip to content

Commit 3074a52

Browse files
committed
removed jqLite warning
1 parent 4eb74a2 commit 3074a52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/angular-bootstrap.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,17 @@
5555
try {
5656
globalVars[varKey] = window[prop];
5757
} catch(e) {} //ignore properties that throw exception when accessed (common in FF)
58-
} else if (globalVars[varKey] !== window[prop] && !isActuallyNaN(window[prop])) {
58+
} else if (globalVars[varKey] !== window[prop] && !isActuallyNaN(window[prop]) && prop != 'jqLite') {
5959
clobbered.push(prop);
6060
console.error("Global variable clobbered by script " + file + "! Variable name: " + prop);
6161
globalVars[varKey] = window[prop];
6262
}
6363
}
64-
6564
for (varKey in globalVars) {
6665
prop = varKey.substr(11);
6766
if (clobbered.indexOf(prop) == -1 &&
6867
prop != 'event' &&
68+
prop != 'jqLite' &&
6969
!isActuallyNaN(globalVars[varKey]) &&
7070
globalVars[varKey] !== window[prop]) {
7171

0 commit comments

Comments
 (0)