1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-10-04 09:50:46 +00:00

Fix for refreshing untouched child nodes in story macro

This commit is contained in:
Jeremy Ruston 2012-02-17 12:36:08 +00:00
parent 6805b08cf4
commit 81219b1205

View File

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