Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / misc / dialog / dialog.jquery-ui.es6.js
index f30489b28da237cdb5c7664a33aa6faffa3f3529..b7023e0afa903efb64735e03322a78f0ef4ae072 100644 (file)
@@ -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);
       }