remove dead code
This commit is contained in:
parent
7cf7e2cba5
commit
d9760fa323
1 changed files with 1 additions and 4 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue