-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
This plugin seems to break on IE 8 and older because Array.filter is not supported and will give you an error.
https://github.com/saabi/vminpoly/blob/master/tokenizer.js#L501
A quick way to fix this yourself is to include the following snippet:
if (!Array.prototype.filter)
{
Array.prototype.filter = function(fun /*, thisp */)
{
"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 thisp = arguments[1];
for (var i = 0; i < len; i++)
{
if (i in t)
{
var val = t[i]; // in case fun mutates this
if (fun.call(thisp, val, i, t))
res.push(val);
}
}
return res;
};
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels