1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-25 23:03:15 +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) {
return new TW_TextNode(text);
},
isTiddlyWikiFakeDom: true
};
exports.fakeDocument = document;

View File

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