From 795ba27d10e56680a963b10380a3b00979ce183a Mon Sep 17 00:00:00 2001 From: Daryl Koopersmith Date: Mon, 19 Nov 2012 03:33:29 +0000 Subject: [PATCH] Media: Convert the attachments browser view's destroy method to the newer dispose method. see #21390. git-svn-id: http://core.svn.wordpress.org/trunk@22659 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/media-views.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/js/media-views.js b/wp-includes/js/media-views.js index d6a5dc3aba..2cb5f879da 100644 --- a/wp-includes/js/media-views.js +++ b/wp-includes/js/media-views.js @@ -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() {