mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-25 20:57:38 +00:00 
			
		
		
		
	Fixed problem with insertBefore() method in fakedom
Was preventing refreshing of widget trees built against the fakedom.
This commit is contained in:
		| @@ -66,6 +66,7 @@ TW_Element.prototype.insertBefore = function(node,nextSibling) { | ||||
| 		var p = this.children.indexOf(nextSibling); | ||||
| 		if(p !== -1) { | ||||
| 			this.children.splice(p,0,node); | ||||
| 			node.parentNode = this; | ||||
| 		} else { | ||||
| 			this.appendChild(node); | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jermolene
					Jermolene