Make WordPress Core

Changeset 22787


Ignore:
Timestamp:
11/21/2012 07:54:06 PM (12 years ago)
Author:
koopersmith
Message:

Media: Make inline uploader use main dispose method. see #21390.

File:
1 edited

Legend:

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

    r22786 r22787  
    18101810        },
    18111811
    1812         destroy: function() {
    1813             wp.Uploader.queue.off( 'add remove reset change:percent', this.renderUploadProgress, this );
    1814             this.remove();
     1812        dispose: function() {
     1813            wp.Uploader.queue.off( null, null, this );
     1814            media.View.prototype.dispose.apply( this, arguments );
     1815            return this;
    18151816        },
    18161817
     
    18281829
    18291830            this.$bar = this.$('.media-progress-bar div');
     1831
     1832            this.views.render();
    18301833            return this;
    18311834        },
Note: See TracChangeset for help on using the changeset viewer.