remove dead code

This commit is contained in:
Leo Horie 2014-09-20 10:51:43 -04:00
parent 7cf7e2cba5
commit d9760fa323

View file

@ -374,16 +374,13 @@ Mithril = m = new function app(window, undefined) {
var html var html
var documentNode = { var documentNode = {
insertAdjacentHTML: function(_, data) {
window.document.write(data)
window.document.close()
},
appendChild: function(node) { appendChild: function(node) {
if (html === undefined) html = window.document.createElement("html") if (html === undefined) html = window.document.createElement("html")
if (window.document.documentElement && window.document.documentElement !== node) { if (window.document.documentElement && window.document.documentElement !== node) {
window.document.replaceChild(node, window.document.documentElement) window.document.replaceChild(node, window.document.documentElement)
} }
else window.document.appendChild(node) else window.document.appendChild(node)
this.childNodes = window.document.childNodes
}, },
insertBefore: function(node) { insertBefore: function(node) {
this.appendChild(node) this.appendChild(node)