Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / misc / dialog / dialog.jquery-ui.es6.js
index b7023e0afa903efb64735e03322a78f0ef4ae072..de1140551a8b3d5d08d0b50df4faec2b6391542e 100644 (file)
@@ -3,7 +3,7 @@
  * Adds default classes to buttons for styling purposes.
  */
 
-(function ($) {
+(function($) {
   $.widget('ui.dialog', $.ui.dialog, {
     options: {
       buttonClass: 'button',
       let index;
       const il = opts.buttons.length;
       for (index = 0; index < il; index++) {
-        if (opts.buttons[index].primary && opts.buttons[index].primary === true) {
+        if (
+          opts.buttons[index].primary &&
+          opts.buttons[index].primary === true
+        ) {
           primaryIndex = index;
           delete opts.buttons[index].primary;
           break;
@@ -28,4 +31,4 @@
       }
     },
   });
-}(jQuery));
+})(jQuery);