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,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 );
|
||||||
|
|
Loading…
Reference in New Issue