Changeset 22806
- Timestamp:
- 11/22/2012 03:19:08 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/media-views.js
r22804 r22806 2573 2573 }, 2574 2574 2575 d estroy: function() {2575 dispose: function() { 2576 2576 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 );2579 2577 $(window).off( 'resize.attachments', this._resizeCss ); 2580 this.remove();2578 media.View.prototype.dispose.apply( this, arguments ); 2581 2579 }, 2582 2580 … … 2681 2679 }, this ) ); 2682 2680 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 2684 2686 // threshold to query for additional attachments. 2685 2687 this.scroll(); 2686 2687 return this;2688 2688 }, 2689 2689
Note: See TracChangeset
for help on using the changeset viewer.