_createButtons() {
const opts = this.options;
let primaryIndex;
- let $buttons;
let index;
const il = opts.buttons.length;
for (index = 0; index < il; index++) {
}
}
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);
}