From 81219b1205ddc2f78dffb48e017a9837cd8ea519 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Fri, 17 Feb 2012 12:36:08 +0000 Subject: [PATCH] Fix for refreshing untouched child nodes in story macro --- js/macros/story.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/macros/story.js b/js/macros/story.js index aeaaa1627..16f5ae174 100644 --- a/js/macros/story.js +++ b/js/macros/story.js @@ -58,7 +58,7 @@ exports.macro = { } return content; }, - refresh: function(macroNode,tiddler,store) { + refresh: function(changes,macroNode,tiddler,store) { /*jslint browser: true */ // Get the tiddlers we're supposed to be displaying var targetTiddlers = parseStory(store.getTiddlerText(macroNode.params.story)), @@ -102,6 +102,8 @@ exports.macro = { // Then delete the actual renderer nodes macroNode.content.splice(t,tiddlerNode-t); } + // Refresh the DOM node we're reusing + macroNode.content[t].refreshInDom(changes); } } // Remove any left over nodes