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, Modernizr) {
9 Drupal.contextual.RegionView = Backbone.View.extend({
10 events: function events() {
12 mouseenter: function mouseenter() {
13 this.model.set('regionIsHovered', true);
15 mouseleave: function mouseleave() {
16 this.model.close().blur().set('regionIsHovered', false);
20 if (Modernizr.touchevents) {
25 initialize: function initialize() {
26 this.listenTo(this.model, 'change:hasFocus', this.render);
28 render: function render() {
29 this.$el.toggleClass('focus', this.model.get('hasFocus'));
34 })(Drupal, Backbone, Modernizr);