// TODO 当てにしていたaudioがclose 等した場合
audio.proxy[ 'listenOnce' ]( 'canplaythrough', this, this._onBufferReady );
} else {
- this.xhr = X.Net.xhrGet( url, 'arraybuffer' )
+ this.xhr = X.Net.xhrGet( url, { type : 'arraybuffer' } )
[ 'listen' ]( X_EVENT_PROGRESS, this )
[ 'listenOnce' ]( [ X_EVENT_SUCCESS, X_EVENT_COMPLETE, X_EVENT_CANCELED ], this );
};
handleEvent : function( e ){
switch( e.type ){
case X_EVENT_PROGRESS :
- e.percent ?
- this.proxy[ 'dispatch' ]( { type : 'progress', percent : e.percent } ) :
+ e[ 'percent' ] ?
+ this.proxy[ 'dispatch' ]( { type : 'progress', 'percent' : e[ 'percent' ] } ) :
this.proxy[ 'dispatch' ]( 'loadstart' );
return;