UNPKG

polyfill-service

Version:
13 lines (10 loc) 292 B
Element.prototype.cloneNode = (function(nativeFunc, undefined) { return function(deep) { if (deep === undefined) { deep = false; } var clone = nativeFunc.call(this, deep); if ('checked' in this) clone.checked = this.checked; return clone; }; }(Element.prototype.cloneNode));