code: function createEvent(type, options) {
    switch (type) {
      case 'dblclick':
      case 'click':
        return createMouseEvent(type, options);
      case 'keydown':
      case 'keyup':
        return createKeyboardEvent(type, options);
    }
  }
docs: Create a non-IE event object.
  
  @param {String} type
  @param {Object} options