Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / misc / dialog / dialog.jquery-ui.js
index 02c1d5b7dede77d3b91d58892248e3e470ac94af..246855c96df95f7c262df5e802538dd5a4810d10 100644 (file)
@@ -14,7 +14,6 @@
     _createButtons: function _createButtons() {
       var opts = this.options;
       var primaryIndex = void 0;
-      var $buttons = void 0;
       var index = void 0;
       var il = opts.buttons.length;
       for (index = 0; index < il; index++) {
@@ -25,7 +24,7 @@
         }
       }
       this._super();
-      $buttons = this.uiButtonSet.children().addClass(opts.buttonClass);
+      var $buttons = this.uiButtonSet.children().addClass(opts.buttonClass);
       if (typeof primaryIndex !== 'undefined') {
         $buttons.eq(index).addClass(opts.buttonPrimaryClass);
       }