Changeset 26295
- Timestamp:
- 11/20/2013 11:06:41 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-models.js
r25080 r26295 1 /* global _wpMediaModelsL10n:false */ 1 2 window.wp = window.wp || {}; 2 3 … … 152 153 */ 153 154 154 155 156 157 155 /** 156 * wp.media.attachment 157 */ 158 media.attachment = function( id ) { 158 159 return Attachment.get( id ); 159 160 }; 160 161 161 162 /** … … 234 235 }, 235 236 236 parse: function( resp , xhr) {237 parse: function( resp ) { 237 238 if ( ! resp ) 238 239 return resp; … … 297 298 298 299 // Automatically sort the collection when the order changes. 299 _changeOrder: function( model, order) {300 _changeOrder: function() { 300 301 if ( this.comparator ) 301 302 this.sort(); … … 325 326 }, 326 327 327 _changeFilteredProps: function( model , options) {328 _changeFilteredProps: function( model ) { 328 329 // If this is a query, updating the collection will be handled by 329 330 // `this._requery()`. … … 366 367 if ( ! this.validateDestroyed && attachment.destroyed ) 367 368 return false; 368 return _.all( this.filters, function( filter , key) {369 return _.all( this.filters, function( filter ) { 369 370 return !! filter.call( this, attachment ); 370 371 }, this );
Note: See TracChangeset
for help on using the changeset viewer.