fix ordering bug when mixing arrays with virtual elements
This commit is contained in:
parent
12256290a9
commit
70496946cf
61 changed files with 6872 additions and 8 deletions
|
|
@ -36,7 +36,7 @@ mock.window = new function() {
|
|||
window.document.createTextNode = function(text) {
|
||||
return {nodeValue: text.toString()}
|
||||
}
|
||||
window.document.documentElement = null
|
||||
window.document.documentElement = window.document.createElement("html")
|
||||
window.document.replaceChild = function(newChild, oldChild) {
|
||||
var index = this.childNodes.indexOf(oldChild)
|
||||
if (index > -1) this.childNodes.splice(index, 1, newChild)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue