mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-03-28 14:26:56 +00:00
Fix for refreshing untouched child nodes in story macro
This commit is contained in:
parent
6805b08cf4
commit
81219b1205
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user