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