Drop support for old browsers and some jQuery

This commit is contained in:
djmaze 2020-09-17 16:40:43 +02:00
parent 091c4ec811
commit d06fed09d6
38 changed files with 6137 additions and 872 deletions

View file

@ -88,12 +88,12 @@ ko.utils.domNodeDisposal = new (function () {
node.parentNode.removeChild(node);
},
"cleanExternalData" : function (node) {
'cleanExternalData' : function (node) {
// Special support for jQuery here because it's so commonly used.
// Many jQuery plugins (including jquery.tmpl) store data using jQuery's equivalent of domData
// so notify it to tear down any resources associated with the node & descendants here.
if (jQueryInstance && (typeof jQueryInstance['cleanData'] == "function"))
jQueryInstance['cleanData']([node]);
if (jQuery && jQuery['cleanData'])
jQuery['cleanData']([node]);
}
};
})();