lib/index.js
function simulateMouseEvent(target_object) {
  var custom_properties = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

  var properties = sanitizeProperties(custom_properties);
  var event = setupMouseEvent(properties);
  target_object.dispatchEvent(event);
}
function simulateMouseEvent(target_object) {
  var custom_properties = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

  var properties = sanitizeProperties(custom_properties);
  var event = setupMouseEvent(properties);
  target_object.dispatchEvent(event);
}
function simulateMouseEvent ( target_object ) { var custom_properties = arguments . length > 1 && arguments [ 1 ] !== undefined ? arguments [ 1 ] : { } ; var properties = sanitizeProperties ( custom_properties ) ; var event = setupMouseEvent ( properties ) ; target_object . dispatchEvent ( event ) ; }
Fires a mouse event on provided object
@param {Object} target_object
@param {Object} custom_properties
@example
simulateMouseEvent(window, {type: 'mousedown', button: 'right'});
Fires a mouse event on provided object