index.js
function createEvent(type, options) {
  switch (type) {
    case 'dblclick':
    case 'click':
      return createMouseEvent(type, options);
    case 'keydown':
    case 'keyup':
      return createKeyboardEvent(type, options);
  }
}
function createEvent(type, options) {
  switch (type) {
    case 'dblclick':
    case 'click':
      return createMouseEvent(type, options);
    case 'keydown':
    case 'keyup':
      return createKeyboardEvent(type, options);
  }
}
function createEvent ( type , options ) { switch ( type ) { case 'dblclick' : case 'click' : return createMouseEvent ( type , options ) ; case 'keydown' : case 'keyup' : return createKeyboardEvent ( type , options ) ; } }
Create a non-IE event object.

@param {String} type
@param {Object} options
Create a non - IE event object .