From 1ca473fd2f8bd3dc9307fbfe48b213b1f6ce52f5 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 31 Oct 2013 21:59:15 +0000 Subject: [PATCH] Remove unused preserveCurrentTiddler attribute from list widget --- core/modules/new_widgets/list.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/modules/new_widgets/list.js b/core/modules/new_widgets/list.js index 0885fef88..7b58af661 100755 --- a/core/modules/new_widgets/list.js +++ b/core/modules/new_widgets/list.js @@ -44,7 +44,6 @@ ListWidget.prototype.execute = function() { // Get our attributes this.template = this.getAttribute("template"); this.editTemplate = this.getAttribute("editTemplate"); - this.preserveCurrentTiddler = this.getAttribute("preserveCurrentTiddler","no") === "yes"; // Compose the list elements this.list = this.getTiddlerList(); var members = [], @@ -118,7 +117,7 @@ Selectively refreshes the widget if needed. Returns true if the widget or any of ListWidget.prototype.refresh = function(changedTiddlers) { var changedAttributes = this.computeAttributes(); // Completely refresh if any of our attributes have changed - if(changedAttributes.filter || changedAttributes.preserveCurrentTiddler) { + if(changedAttributes.filter || changedAttributes.template || changedAttributes.editTemplate || changedAttributes.emptyMessage) { this.refreshSelf(); return true; } else {