From f0d512edf0a8beca7961997204352004d03dbba1 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Fri, 7 Feb 2014 10:12:45 +0000 Subject: [PATCH] Remove extraneous autosave attribute from navigator widget Inadvertently committed. --- core/modules/widgets/navigator.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core/modules/widgets/navigator.js b/core/modules/widgets/navigator.js index 6312f9de8..81b316281 100755 --- a/core/modules/widgets/navigator.js +++ b/core/modules/widgets/navigator.js @@ -52,7 +52,6 @@ NavigatorWidget.prototype.execute = function() { // Get our parameters this.storyTitle = this.getAttribute("story"); this.historyTitle = this.getAttribute("history"); - this.autosave = this.getAttribute("autosave","yes"); // Construct the child widgets this.makeChildWidgets(); }; @@ -62,7 +61,7 @@ Selectively refreshes the widget if needed. Returns true if the widget or any of */ NavigatorWidget.prototype.refresh = function(changedTiddlers) { var changedAttributes = this.computeAttributes(); - if(changedAttributes.story || changedAttributes.history || changedAttributes.autosave) { + if(changedAttributes.story || changedAttributes.history) { this.refreshSelf(); return true; } else { @@ -291,9 +290,7 @@ NavigatorWidget.prototype.handleSaveTiddlerEvent = function(event) { this.saveStoryList(storyList); } // Send a notification event - if(this.autosave === "yes") { - this.dispatchEvent({type: "tw-auto-save-wiki"}); - } + this.dispatchEvent({type: "tw-auto-save-wiki"}); } } }