aurelia-materialize-bridge
Version:
Aurelia interface to http://materializecss.com/
16 lines (14 loc) • 344 B
text/typescript
function remove(this: Element) {
if (this.parentNode) {
this.parentNode.removeChild(this);
}
}
// polyfill remove for IE11
(function() {
if (!Element.prototype.remove) {
Element.prototype.remove = remove;
}
if (typeof Text !== "undefined" && Text && !Text.prototype.remove) {
Text.prototype.remove = remove;
}
})();