URGENT: Reveal widget - fixed problem with previous patch of refresh handling (#5260)

* Fixed problem with previous patch of refresh handling

* Update reveal.js
This commit is contained in:
Saq Imtiaz 2020-12-12 00:24:27 +01:00 committed by GitHub
parent 93309b0b7d
commit 0911d99813
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 6 deletions

View File

@ -216,12 +216,7 @@ RevealWidget.prototype.refresh = function(changedTiddlers) {
if(changedAttributes.state || changedAttributes.type || changedAttributes.text || changedAttributes.position || changedAttributes.positionAllowNegative || changedAttributes["default"] || changedAttributes.animate || changedAttributes.stateTitle || changedAttributes.stateField || changedAttributes.stateIndex) {
this.refreshSelf();
return true;
} else if(changedAttributes.style) {
this.domNode.style = this.getAttribute("style");
} else if(changedAttributes["class"]) {
this.assignDomNodeClasses();
}
else {
} else {
var currentlyOpen = this.isOpen;
this.readState();
if(this.isOpen !== currentlyOpen) {
@ -234,6 +229,12 @@ RevealWidget.prototype.refresh = function(changedTiddlers) {
} else if(this.type === "popup" && this.updatePopupPosition && (changedTiddlers[this.state] || changedTiddlers[this.stateTitle])) {
this.positionPopup(this.domNode);
}
if(changedAttributes.style) {
this.domNode.style = this.getAttribute("style","");
}
if(changedAttributes["class"]) {
this.assignDomNodeClasses();
}
return this.refreshChildren(changedTiddlers);
}
};