mirror of
				https://github.com/Jermolene/TiddlyWiki5
				synced 2025-10-31 07:32:59 +00:00 
			
		
		
		
	Disable storyviews when rendering to the fake dom
This commit is contained in:
		| @@ -219,6 +219,7 @@ var document = { | |||||||
| 	createTextNode: function(text) { | 	createTextNode: function(text) { | ||||||
| 		return new TW_TextNode(text); | 		return new TW_TextNode(text); | ||||||
| 	}, | 	}, | ||||||
|  | 	isTiddlyWikiFakeDom: true | ||||||
| }; | }; | ||||||
|  |  | ||||||
| exports.fakeDocument = document; | exports.fakeDocument = document; | ||||||
|   | |||||||
| @@ -43,7 +43,11 @@ ListWidget.prototype.render = function(parent,nextSibling) { | |||||||
| 	this.renderChildren(parent,nextSibling); | 	this.renderChildren(parent,nextSibling); | ||||||
| 	// Construct the storyview | 	// Construct the storyview | ||||||
| 	var StoryView = this.storyViews[this.storyViewName]; | 	var StoryView = this.storyViews[this.storyViewName]; | ||||||
| 	this.storyview = StoryView ? new StoryView(this) : null; | 	if(StoryView && !this.document.isTiddlyWikiFakeDom) { | ||||||
|  | 		this.storyview = new StoryView(this) | ||||||
|  | 	} else { | ||||||
|  | 		this.storyview = null; | ||||||
|  | 	} | ||||||
| }; | }; | ||||||
|  |  | ||||||
| /* | /* | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jermolene
					Jermolene