code: function collapseHoverEvents(events) {
  		var hover = false;
  		var filteredEvents = events.filter(function(eventName) {
  			switch (eventName) {
  			case 'mouseenter':
  			case 'mouseover':
  			case 'mouseout':
  			case 'mouseleave':
  				hover = true;
  				return false;
  
  			default:
  				return true;
  			}
  		});
  		if (hover && filteredEvents.indexOf('mousemove') === -1) {
  			filteredEvents.push('mousemove');
  		}
  		return filteredEvents;
  	}
docs: /* eslint-enable global-require