Make WordPress Core

Changeset 22806


Ignore:
Timestamp:
11/22/2012 03:19:08 AM (14 years ago)
Author:
koopersmith
Message:

Media: Check to see if we need more attachments when the browser is attached to the DOM. fixes #22480, see #21390.

File:
1 edited

Legend:

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

    r22804 r22806  
    25732573                },
    25742574
    2575                 destroy: function() {
     2575                dispose: function() {
    25762576                        this.collection.props.off( null, null, this );
    2577                         this.collection.off( 'add remove reset', null, this );
    2578                         this.model.off( 'change:edge change:gutter', this.css, this );
    25792577                        $(window).off( 'resize.attachments', this._resizeCss );
    2580                         this.remove();
     2578                        media.View.prototype.dispose.apply( this, arguments );
    25812579                },
    25822580
     
    26812679                        }, this ) );
    26822680
    2683                         // Then, trigger the scroll event to check if we're within the
     2681                        return this;
     2682                },
     2683
     2684                ready: function() {
     2685                        // Trigger the scroll event to check if we're within the
    26842686                        // threshold to query for additional attachments.
    26852687                        this.scroll();
    2686 
    2687                         return this;
    26882688                },
    26892689
Note: See TracChangeset for help on using the changeset viewer.