Skip to content

Instantly share code, notes, and snippets.

@Arlen22
Created December 30, 2014 14:26
Show Gist options
  • Save Arlen22/4ce92feb0eb70df74a6a to your computer and use it in GitHub Desktop.
Save Arlen22/4ce92feb0eb70df74a6a to your computer and use it in GitHub Desktop.
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