element.prepend.js 160 B

1234567
  1. (function(){
  2. if(Element.prototype.prepend) return
  3. Element.prototype.prepend = function(newNode) {
  4. this.insertBefore(newNode, this.firstChild)
  5. }
  6. }())