-
Notifications
You must be signed in to change notification settings - Fork 239
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
v0.23.0 compatibility issue with IE7 and IE8 #144
Comments
Meanwhile you could add this polyfill to your app, via Mozilla: if (!Array.prototype.filter) {
Array.prototype.filter = function(fun/*, thisArg*/) {
'use strict';
if (this === void 0 || this === null) {
throw new TypeError();
}
var t = Object(this);
var len = t.length >>> 0;
if (typeof fun !== 'function') {
throw new TypeError();
}
var res = [];
var thisArg = arguments.length >= 2 ? arguments[1] : void 0;
for (var i = 0; i < len; i++) {
if (i in t) {
var val = t[i];
// NOTE: Technically this should Object.defineProperty at
// the next index, as push can be affected by
// properties on Object.prototype and Array.prototype.
// But that method's new, and collisions should be
// rare, so use the more-compatible alternative.
if (fun.call(thisArg, val, i, t)) {
res.push(val);
}
}
}
return res;
};
} Personally I like approach where we forget about anything below IE9, but I understand there are situations (governments, Asian countries...) where it might feel too early. |
Ack, good call. Sorry about that. Will replace with a standard loop. |
Fixed in 0.25.0. Thanks for reporting! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The new v0.23.0+ utilizes the filter() function, which is not compatible with IE7 and IE8 since those browsers don't have that function. Would be great for IE7 and IE8 compatibility version.
The text was updated successfully, but these errors were encountered: