X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmisc%2Fdialog%2Fdialog.jquery-ui.es6.js;h=b7023e0afa903efb64735e03322a78f0ef4ae072;hb=74df008bdbb3a11eeea356744f39b802369bda3c;hp=f30489b28da237cdb5c7664a33aa6faffa3f3529;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;p=yaffs-website diff --git a/web/core/misc/dialog/dialog.jquery-ui.es6.js b/web/core/misc/dialog/dialog.jquery-ui.es6.js index f30489b28..b7023e0af 100644 --- a/web/core/misc/dialog/dialog.jquery-ui.es6.js +++ b/web/core/misc/dialog/dialog.jquery-ui.es6.js @@ -12,7 +12,6 @@ _createButtons() { const opts = this.options; let primaryIndex; - let $buttons; let index; const il = opts.buttons.length; for (index = 0; index < il; index++) { @@ -23,7 +22,7 @@ } } this._super(); - $buttons = this.uiButtonSet.children().addClass(opts.buttonClass); + const $buttons = this.uiButtonSet.children().addClass(opts.buttonClass); if (typeof primaryIndex !== 'undefined') { $buttons.eq(index).addClass(opts.buttonPrimaryClass); }