7 lines
160 B
JavaScript
7 lines
160 B
JavaScript
(function(){
|
|
if(Element.prototype.prepend) return
|
|
|
|
Element.prototype.prepend = function(newNode) {
|
|
this.insertBefore(newNode, this.firstChild)
|
|
}
|
|
}())
|