-
-
Notifications
You must be signed in to change notification settings - Fork 627
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
Remove indexOf from Array prototype for good IE < 9 support #55
Comments
what do you mean? If Array has no function indexOf i18next will not work - that's why i added it to prototype of Array if the function doesn't exist... |
closing this one - because of lack of information. |
I meen you can make private "indexOf" function for i18next, so don't change environment. Check this code with IE<9 and Chrome for example - http://jsfiddle.net/ZaPq9/2/ |
To shim behaviors not avaiable in old browsers is rather common - same does augment.js. It's even done like https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/indexOf suggests. I see the problem if you don't check for |
Shows "1", "2", "function (searchElement /*, fromIndex */ ) { "use strict"; ..."
The text was updated successfully, but these errors were encountered: