1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-28 23:10:46 +00:00

Missed off some of the refresh logic

This commit is contained in:
Jeremy Ruston 2013-10-23 19:46:31 +01:00
parent 4e713baeee
commit 54bed81ab9

View File

@ -91,11 +91,15 @@ Selectively refreshes the widget if needed. Returns true if the widget or any of
*/
CheckboxWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.title || changedAttributes.tag || changedAttributes["class"] || changedTiddlers[this.checkboxTitle]) {
if(changedAttributes.title || changedAttributes.tag || changedAttributes["class"]) {
this.refreshSelf();
return true;
} else {
if(changedTiddlers[this.checkboxTitle]) {
this.inputDomNode.checked = this.getValue();
}
return this.refreshChildren(changedTiddlers);
}
return this.refreshChildren(changedTiddlers);
};
/*