zammad/zammad

View on GitHub
app/assets/javascripts/knowledge_base_public_polyfills/element.prepend.js

Summary

Maintainability
A
0 mins
Test Coverage
(function(){
  if(Element.prototype.prepend) return

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