From e024440ca8a3ccbc1839dff9167d42db883116f8 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 17 Jan 2013 11:29:21 +0000 Subject: [PATCH] Fixed transclude widget to only refresh when the template changes Not when the tiddler being viewed changes; any such changes will be picked up by embedded view widgets. --- core/modules/widgets/transclude.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/widgets/transclude.js b/core/modules/widgets/transclude.js index 5564a66a6..0a9a973be 100644 --- a/core/modules/widgets/transclude.js +++ b/core/modules/widgets/transclude.js @@ -128,7 +128,7 @@ TranscludeWidget.prototype.refreshInDom = function(changedAttributes,changedTidd $tw.utils.toggleClass(this.renderer.domNode,"tw-tiddler-missing",!this.renderer.renderTree.wiki.tiddlerExists(this.targetTitle)); } // Check if any of our attributes have changed, or if a tiddler we're interested in has changed - if(changedAttributes.target || changedAttributes.template || (this.targetTitle && changedTiddlers[this.targetTitle]) || (this.templateTitle && changedTiddlers[this.templateTitle])) { + if(changedAttributes.target || changedAttributes.template || (this.templateTitle && changedTiddlers[this.templateTitle])) { // Regenerate and rerender the widget and replace the existing DOM node this.generate(); var oldDomNode = this.renderer.domNode,