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

git-svn-id: https://develop.svn.wordpress.org/trunk@21379 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith 2012-08-01 01:10:13 +00:00
parent 43d668a041
commit 75f9258969

View File

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