From 4f0e148bf170f0fe89a303496b95fb963070eab8 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Wed, 4 Oct 2023 22:18:50 +0100 Subject: [PATCH] Fix typo --- core/modules/widgets/button.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/modules/widgets/button.js b/core/modules/widgets/button.js index dd4e3888c..e1256ec30 100644 --- a/core/modules/widgets/button.js +++ b/core/modules/widgets/button.js @@ -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); } }); };