mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 01:20:30 +00:00
Add a comment on the default value of tv-action-refresh-policy
This commit is contained in:
parent
c543036a0f
commit
4d87ef4231
@ -570,7 +570,7 @@ Widget.prototype.invokeActions = function(triggeringWidget,event) {
|
|||||||
for(var t=0; t<this.children.length; t++) {
|
for(var t=0; t<this.children.length; t++) {
|
||||||
var child = this.children[t],
|
var child = this.children[t],
|
||||||
childIsActionWidget = !!child.invokeAction,
|
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
|
// Refresh the child if required
|
||||||
if(childIsActionWidget || actionRefreshPolicy === "always") {
|
if(childIsActionWidget || actionRefreshPolicy === "always") {
|
||||||
child.refreshSelf();
|
child.refreshSelf();
|
||||||
|
Loading…
Reference in New Issue
Block a user