code: function(eventType, handler) {
      if (this.deferredEvents === null)
        this.deferredEvents = {};
      var handlers = this.deferredEvents[eventType];
      if (handlers === undefined)
        handlers = this.deferredEvents[eventType] = [];
      handlers.push({ eventType: eventType, handler: handler });
    }
docs: /*
  Adds event handlers