Chris@0: /** Chris@0: * DO NOT EDIT THIS FILE. Chris@0: * See the following change record for more information, Chris@0: * https://www.drupal.org/node/2815083 Chris@0: * @preserve Chris@0: **/ Chris@0: Chris@0: (function (Drupal, $, Backbone) { Chris@0: Drupal.quickedit.EntityDecorationView = Backbone.View.extend({ Chris@0: initialize: function initialize() { Chris@0: this.listenTo(this.model, 'change', this.render); Chris@0: }, Chris@0: render: function render() { Chris@0: this.$el.toggleClass('quickedit-entity-active', this.model.get('isActive')); Chris@0: }, Chris@0: remove: function remove() { Chris@0: this.setElement(null); Chris@0: Backbone.View.prototype.remove.call(this); Chris@0: } Chris@0: }); Chris@0: })(Drupal, jQuery, Backbone);