Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / image / js / editors / image.es6.js
index fe0e6f56d65c420fd01c32af055d7979a6dd941a..3621ff97aca27632ef8f66e645e3d4ffc8f19718 100644 (file)
           });
           break;
 
-        case 'active':
-          var self = this;
+        case 'active': {
+          const self = this;
 
           // Indicate that this element is being edited by Quick Edit Image.
           this.$el.addClass('quickedit-image-element');
 
           // Render our initial dropzone element. Once the user reverts changes
           // or saves a new image, this element is removed.
-          var $dropzone = this.renderDropzone('upload', Drupal.t('Drop file here or click to upload'));
+          const $dropzone = this.renderDropzone('upload', Drupal.t('Drop file here or click to upload'));
 
           $dropzone.on('dragenter', function (e) {
             $(this).addClass('hover');
 
           this.renderToolbar(fieldModel);
           break;
+        }
 
         case 'changed':
           break;