no globals

This commit is contained in:
j 2011-10-31 15:46:07 +01:00
parent bf228cf711
commit 496da6aa77

View file

@ -44,7 +44,7 @@ if (!Array.prototype.indexOf) {
} }
var arr = Object(this), var arr = Object(this),
i, i,
len = arr.length >>> 0; len = arr.length >>> 0,
ret = -1; ret = -1;
for (i = 0; i < len; i++) { for (i = 0; i < len; i++) {
if (i in arr && arr[i] === val) { if (i in arr && arr[i] === val) {
@ -115,4 +115,4 @@ if (!Object.keys) {
} }
return ret; return ret;
} }
} }