ld31-space-diggers/node_modules/browser-sync/node_modules/browser-sync-client/lib/client-shims.js
Ruben Müller 760c1838ed Add game
2014-12-07 20:57:49 +01:00

20 lines
434 B
JavaScript

if (!("indexOf" in Array.prototype)) {
Array.prototype.indexOf= function(find, i) {
if (i === undefined) {
i = 0;
}
if (i < 0) {
i += this.length;
}
if (i < 0) {
i= 0;
}
for (var n = this.length; i < n; i += 1) {
if (i in this && this[i]===find) {
return i;
}
}
return -1;
};
}