Make the browser property in wp.Uploader optional. fixes #21437.

git-svn-id: http://core.svn.wordpress.org/trunk@21379 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
koopersmith 2012-08-01 01:10:13 +00:00
parent af18fc1ae2
commit 83f2d7dc6e
1 changed files with 2 additions and 1 deletions

View File

@ -113,6 +113,7 @@ if ( typeof wp === 'undefined' )
}); });
}( this.dropzone, this.supports.dragdrop )); }( this.dropzone, this.supports.dragdrop ));
if ( this.browser )
this.browser.on( 'mouseenter', this.refresh ); this.browser.on( 'mouseenter', this.refresh );
this.uploader.bind( 'UploadProgress', this.progress ); this.uploader.bind( 'UploadProgress', this.progress );