2 * DO NOT EDIT THIS FILE.
3 * See the following change record for more information,
4 * https://www.drupal.org/node/2815083
8 (function (Drupal, Backbone) {
9 Drupal.contextual.StateModel = Backbone.Model.extend({
13 regionIsHovered: false,
22 toggleOpen: function toggleOpen() {
23 var newIsOpen = !this.get('isOpen');
24 this.set('isOpen', newIsOpen);
30 close: function close() {
31 this.set('isOpen', false);
34 focus: function focus() {
35 this.set('hasFocus', true);
37 this.collection.each(function (model) {
38 if (model.cid !== cid) {
44 blur: function blur() {
45 if (!this.get('isOpen')) {
46 this.set('hasFocus', false);