WordPress.org

Make WordPress Core

Changeset 28046


Ignore:
Timestamp:
04/08/2014 11:20:34 AM (6 years ago)
Author:
ocean90
Message:

Move toolbar declaration after the :visible check, like it was before [28019].

props kovshenin.
fixes #24859.

File:
1 edited

Legend:

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

    r28031 r28046  
    49044904        scroll: function() {
    49054905            var view = this,
    4906                 toolbar = this.views.parent.toolbar;
    4907 
    4908             // @todo: is :visible still necessary?
     4906                toolbar;
     4907
    49094908            if ( ! this.$el.is(':visible') || ! this.collection.hasMore() ) {
    49104909                return;
    49114910            }
     4911
     4912            toolbar = this.views.parent.toolbar;
    49124913
    49134914            // Show the spinner only if we are close to the bottom.
Note: See TracChangeset for help on using the changeset viewer.