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:
parent
af18fc1ae2
commit
83f2d7dc6e
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue