Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.indexOf issue in ie8 #22

Open
hoanghiep opened this issue Sep 11, 2012 · 1 comment
Open

.indexOf issue in ie8 #22

hoanghiep opened this issue Sep 11, 2012 · 1 comment

Comments

@hoanghiep
Copy link

here is function to fix this issue

[].indexOf || (Array.prototype.indexOf = function (v, n) {
n = (n == null) ? 0 : n;
var m = this.length;
for (var i = n; i < m; i++)
if (this[i] == v)
return i;
return -1;
});

@karimeri
Copy link

karimeri commented Dec 4, 2012

Thanks , it works for me :)))))))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants