code: function(type, callback) {
              this._events = this._events || {};
  
              if ( !(type in this._events) ) {
                  this._events[type] = this.createEvent(type);
              }
  
              YAHOO.util.EventProvider.prototype.subscribe.apply(this, arguments);
          }
docs: wrapper for EventProvider.subscribe to create events on the fly