1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-05 09:36:18 +00:00
This commit is contained in:
Jeremy Ruston 2023-10-04 22:18:50 +01:00
parent b4896d79d8
commit 4f0e148bf1

View File

@ -257,9 +257,10 @@ ButtonWidget.prototype.updateDomNodeClasses = function() {
};
ButtonWidget.prototype.updateDomNodeDataAttributes = function() {
var self = this;
$tw.utils.each(this.attributes,function(value,name) {
if(name.substr(0,DATA_ATTRIBUTE_PREFIX.length) === DATA_ATTRIBUTE_PREFIX) {
domNode.setAttribute(name,value);
self.domNode.setAttribute(name,value);
}
});
};