Make WordPress Core

Changeset 22659


Ignore:
Timestamp:
11/19/2012 03:33:29 AM (12 years ago)
Author:
koopersmith
Message:

Media: Convert the attachments browser view's destroy method to the newer dispose method. see #21390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/media-views.js

    r22658 r22659  
    25512551        },
    25522552
    2553         destroy: function() {
    2554             this.remove();
     2553        dispose: function() {
    25552554            this.toolbar.destroy();
    25562555            this.attachments.destroy();
     2556            media.View.prototype.dispose.apply( this, arguments );
    25572557        },
    25582558
Note: See TracChangeset for help on using the changeset viewer.