Deprecated Method
MatthewSSizemore opened this issue · comments
Matthew S. Sizemore commented
Within the $.fire event it is using "initEvent()". This has been deprecated.
$.fire = function (target, type, properties) {
var evt = document.createEvent("HTMLEvents");
evt.initEvent(type, true, true);
for (var j in properties) {
evt[j] = properties[j];
}
return target.dispatchEvent(evt);
};
ievaw commented
not an expert in this, but possible change could be this (?):
var evt = new Event (type, {"bubbles":true, "cancelable":true});
document.dispatchEvent(evt);
Lea Verou commented
I'd welcome a PR on this, but don't have the time to do it myself right now.