WordPress.org

Make WordPress Core

Changeset 21908


Ignore:
Timestamp:
09/19/2012 01:00:34 AM (8 years ago)
Author:
koopersmith
Message:

Media JS: Prevent infinite scroll events from being unbound when Attachments views are re-rendered. see #21390.

File:
1 edited

Legend:

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

    r21906 r21908  
    541541
    542542        render: function() {
     543            // Detach the list from the DOM to prevent event removal.
     544            this.$list.detach();
     545
    543546            this.$el.html( this.template( this.options ) ).append( this.$list );
    544547            this.refresh();
Note: See TracChangeset for help on using the changeset viewer.