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

Remove extraneous autosave attribute from navigator widget

Inadvertently committed.
This commit is contained in:
Jermolene 2014-02-07 10:12:45 +00:00
parent 2758e586bd
commit f0d512edf0

View File

@ -52,7 +52,6 @@ NavigatorWidget.prototype.execute = function() {
// Get our parameters // Get our parameters
this.storyTitle = this.getAttribute("story"); this.storyTitle = this.getAttribute("story");
this.historyTitle = this.getAttribute("history"); this.historyTitle = this.getAttribute("history");
this.autosave = this.getAttribute("autosave","yes");
// Construct the child widgets // Construct the child widgets
this.makeChildWidgets(); 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) { NavigatorWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes(); var changedAttributes = this.computeAttributes();
if(changedAttributes.story || changedAttributes.history || changedAttributes.autosave) { if(changedAttributes.story || changedAttributes.history) {
this.refreshSelf(); this.refreshSelf();
return true; return true;
} else { } else {
@ -291,9 +290,7 @@ NavigatorWidget.prototype.handleSaveTiddlerEvent = function(event) {
this.saveStoryList(storyList); this.saveStoryList(storyList);
} }
// Send a notification event // Send a notification event
if(this.autosave === "yes") { this.dispatchEvent({type: "tw-auto-save-wiki"});
this.dispatchEvent({type: "tw-auto-save-wiki"});
}
} }
} }
} }