code: function onEvent(data) {
  	var type = data.type,
  		event;
  
  	debug('onEvent() | [type:%s, data:%o]', type, data);
  
  	switch (type) {
  		case 'videoresize':
  			this.videoWidth = data.size.width;
  			this.videoHeight = data.size.height;
  			this.refresh(this);
  
  			event = new Event(type);
  			event.videoWidth = data.size.width;
  			event.videoHeight = data.size.height;
  			this.dispatchEvent(event);
  
  			break;
  	}
  }
docs: Private API.