1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 12:07:19 +00:00

Disable storyviews when rendering to the fake dom

This commit is contained in:
Jermolene 2014-03-10 18:41:11 +00:00
parent af34fbbca3
commit db35bc36aa
2 changed files with 6 additions and 1 deletions

View File

@ -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;

View File

@ -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;
}
}; };
/* /*