mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-29 14:47:40 +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); | 		var p = this.children.indexOf(nextSibling); | ||||||
| 		if(p !== -1) { | 		if(p !== -1) { | ||||||
| 			this.children.splice(p,0,node); | 			this.children.splice(p,0,node); | ||||||
|  | 			node.parentNode = this; | ||||||
| 		} else { | 		} else { | ||||||
| 			this.appendChild(node); | 			this.appendChild(node); | ||||||
| 		} | 		} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jermolene
					Jermolene