trabajo-afectivo/app/assets/javascripts/knowledge_base_public_polyfills/element.prepend.js

8 lines
160 B
JavaScript
Raw Normal View History

2019-06-04 03:40:48 +00:00
(function(){
if(Element.prototype.prepend) return
Element.prototype.prepend = function(newNode) {
this.insertBefore(newNode, this.firstChild)
}
}())