trabajo-afectivo/app/assets/javascripts/knowledge_base_public_polyfills/element.prepend.js
2019-06-04 05:40:48 +02:00

7 lines
160 B
JavaScript

(function(){
if(Element.prototype.prepend) return
Element.prototype.prepend = function(newNode) {
this.insertBefore(newNode, this.firstChild)
}
}())