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:
parent
af34fbbca3
commit
db35bc36aa
@ -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;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user