Created
December 30, 2014 14:26
-
-
Save Arlen22/4ce92feb0eb70df74a6a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.stateTitle = this.state; | |
this.readState(); | |
// Construct the child widgets | |
- var childNodes = this.isOpen ? this.parseTreeNode.children : []; | |
- this.hasChildNodes = this.isOpen; | |
+ if(this.hasVariable("tv-static-output", "yes")) { | |
+ this.alwaysRender = true; | |
+ } else { | |
+ this.alwaysRender = false; | |
+ } | |
+ var childNodes = (this.alwaysRender || this.isOpen) ? this.parseTreeNode.children : []; | |
+ this.hasChildNodes = this.alwaysRender || this.isOpen; | |
this.makeChildWidgets(childNodes); | |
}; | |
@@ -158,7 +163,7 @@ RevealWidget.prototype.refresh = function(changedTiddlers) { | |
currentlyOpen = this.isOpen; | |
this.readState(); | |
if(this.isOpen !== currentlyOpen) { | |
- if(this.retain === "yes") { | |
+ if(this.retain === "yes" || this.alwaysOpen) { | |
this.updateState(); | |
} else { | |
this.refreshSelf(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment