Media: Convert the attachments browser view's destroy method to the newer dispose method. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22659 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2411401f1b
commit
46da78b32e
@ -2550,10 +2550,10 @@
|
||||
});
|
||||
},
|
||||
|
||||
destroy: function() {
|
||||
this.remove();
|
||||
dispose: function() {
|
||||
this.toolbar.destroy();
|
||||
this.attachments.destroy();
|
||||
media.View.prototype.dispose.apply( this, arguments );
|
||||
},
|
||||
|
||||
render: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user