'use strict'; /** * Licensed Materials - Property of IBM * IBM Cognos Products: BI Cloud (C) Copyright IBM Corp. 2017 * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ define(['baglass/core-client/js/core-client/ui/core/View'], function (View) { var MouseOverArea = View.extend({ /** * options.onActivate - a function that will be called when the mouse is over the element associated with this view. */ init: function init(options) { MouseOverArea.inherited('init', this, arguments); this.onActivate = options.onActivate; // mouseover vs. mouseenter - it doesn't make any difference right now, but if children end up getting added to // the associated element, then mouseover will trigger when the mouse is over those children too, which is better // for us I think. this.$el.on('mouseover', this.onActivate); }, remove: function remove() { this.$el.off('mouseover', this.onActivate); MouseOverArea.inherited('remove', this, arguments); } }); return MouseOverArea; }); //# sourceMappingURL=MouseOverArea.js.map