mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 00:50:28 +00:00
Disable storyviews when rendering to the fake dom
This commit is contained in:
parent
af34fbbca3
commit
db35bc36aa
@ -219,6 +219,7 @@ var document = {
|
||||
createTextNode: function(text) {
|
||||
return new TW_TextNode(text);
|
||||
},
|
||||
isTiddlyWikiFakeDom: true
|
||||
};
|
||||
|
||||
exports.fakeDocument = document;
|
||||
|
@ -43,7 +43,11 @@ ListWidget.prototype.render = function(parent,nextSibling) {
|
||||
this.renderChildren(parent,nextSibling);
|
||||
// Construct the storyview
|
||||
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;
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user