polyfill-service
Version:
A polyfill combinator
1 lines • 1.13 kB
JSON
{"aliases":["default"],"browsers":{"android":"*","bb":"*","chrome":"* - 28","firefox":"3.6 - *","ios_chr":"*","ios_saf":"*","ie":"6 - *","ie_mob":"10 - *","opera":"* - 15","op_mini":"*","safari":"4 - *","firefox_mob":"3.6 - *"},"dependencies":["Document","Element","Text","_mutation"],"spec":"http://dom.spec.whatwg.org/#dom-childnode-remove","baseDir":"Element/prototype/remove","hasTests":true,"rawSource":"\n// Element.prototype.remove\nDocument.prototype.remove = Element.prototype.remove = function remove() {\n\tif (this.parentNode) {\n\t\tthis.parentNode.removeChild(this);\n\t}\n};\n\n// Not all UAs support the Text constructor. Polyfill on the Text constructor only where it exists\n// TODO: Add a polyfill for the Text constructor, and make it a dependency of this polyfill.\nif (\"Text\" in this) {\n\tText.prototype.remove = Element.prototype.remove;\n}\n","minSource":"Document.prototype.remove=Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)},\"Text\"in this&&(Text.prototype.remove=Element.prototype.remove);","detectSource":"'Element' in this && 'remove' in Element.prototype"}