1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 17:10:29 +00:00

Add a comment on the default value of tv-action-refresh-policy

This commit is contained in:
jeremy@jermolene.com 2021-10-26 09:51:00 +01:00
parent c543036a0f
commit 4d87ef4231

View File

@ -570,7 +570,7 @@ Widget.prototype.invokeActions = function(triggeringWidget,event) {
for(var t=0; t<this.children.length; t++) {
var child = this.children[t],
childIsActionWidget = !!child.invokeAction,
actionRefreshPolicy = child.getVariable("tv-action-refresh-policy");
actionRefreshPolicy = child.getVariable("tv-action-refresh-policy"); // Default is "once"
// Refresh the child if required
if(childIsActionWidget || actionRefreshPolicy === "always") {
child.refreshSelf();