Media: Make inline uploader use main dispose method. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22787 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
45f6cf2fb5
commit
6423fba2c4
@ -1809,9 +1809,10 @@
|
||||
wp.Uploader.queue.on( 'add remove reset change:percent', this.renderUploadProgress, this );
|
||||
},
|
||||
|
||||
destroy: function() {
|
||||
wp.Uploader.queue.off( 'add remove reset change:percent', this.renderUploadProgress, this );
|
||||
this.remove();
|
||||
dispose: function() {
|
||||
wp.Uploader.queue.off( null, null, this );
|
||||
media.View.prototype.dispose.apply( this, arguments );
|
||||
return this;
|
||||
},
|
||||
|
||||
render: function() {
|
||||
@ -1827,6 +1828,8 @@
|
||||
$placeholder.replaceWith( $browser.show() );
|
||||
|
||||
this.$bar = this.$('.media-progress-bar div');
|
||||
|
||||
this.views.render();
|
||||
return this;
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user