Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / quickedit / js / views / EntityDecorationView.es6.js
index 263a6d27927071b2c018a1efa2d5ccd781232595..283bed33e99230bd52ea423daafbbc66b37d7093 100644 (file)
@@ -3,34 +3,37 @@
  * A Backbone view that decorates the in-place editable entity.
  */
 
-(function (Drupal, $, Backbone) {
-  Drupal.quickedit.EntityDecorationView = Backbone.View.extend(/** @lends Drupal.quickedit.EntityDecorationView# */{
+(function(Drupal, $, Backbone) {
+  Drupal.quickedit.EntityDecorationView = Backbone.View.extend(
+    /** @lends Drupal.quickedit.EntityDecorationView# */ {
+      /**
+       * Associated with the DOM root node of an editable entity.
+       *
+       * @constructs
+       *
+       * @augments Backbone.View
+       */
+      initialize() {
+        this.listenTo(this.model, 'change', this.render);
+      },
 
-    /**
-     * Associated with the DOM root node of an editable entity.
-     *
-     * @constructs
-     *
-     * @augments Backbone.View
-     */
-    initialize() {
-      this.listenTo(this.model, 'change', this.render);
-    },
-
-    /**
-     * @inheritdoc
-     */
-    render() {
-      this.$el.toggleClass('quickedit-entity-active', this.model.get('isActive'));
-    },
+      /**
+       * @inheritdoc
+       */
+      render() {
+        this.$el.toggleClass(
+          'quickedit-entity-active',
+          this.model.get('isActive'),
+        );
+      },
 
-    /**
-     * @inheritdoc
-     */
-    remove() {
-      this.setElement(null);
-      Backbone.View.prototype.remove.call(this);
+      /**
+       * @inheritdoc
+       */
+      remove() {
+        this.setElement(null);
+        Backbone.View.prototype.remove.call(this);
+      },
     },
-
-  });
-}(Drupal, jQuery, Backbone));
+  );
+})(Drupal, jQuery, Backbone);