kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Fix for refreshing untouched child nodes in story macro
rodzic
6805b08cf4
commit
81219b1205
|
@ -58,7 +58,7 @@ exports.macro = {
|
||||||
}
|
}
|
||||||
return content;
|
return content;
|
||||||
},
|
},
|
||||||
refresh: function(macroNode,tiddler,store) {
|
refresh: function(changes,macroNode,tiddler,store) {
|
||||||
/*jslint browser: true */
|
/*jslint browser: true */
|
||||||
// Get the tiddlers we're supposed to be displaying
|
// Get the tiddlers we're supposed to be displaying
|
||||||
var targetTiddlers = parseStory(store.getTiddlerText(macroNode.params.story)),
|
var targetTiddlers = parseStory(store.getTiddlerText(macroNode.params.story)),
|
||||||
|
@ -102,6 +102,8 @@ exports.macro = {
|
||||||
// Then delete the actual renderer nodes
|
// Then delete the actual renderer nodes
|
||||||
macroNode.content.splice(t,tiddlerNode-t);
|
macroNode.content.splice(t,tiddlerNode-t);
|
||||||
}
|
}
|
||||||
|
// Refresh the DOM node we're reusing
|
||||||
|
macroNode.content[t].refreshInDom(changes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Remove any left over nodes
|
// Remove any left over nodes
|
||||||
|
|
Ładowanie…
Reference in New Issue