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:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user