Changeset 47122 for trunk/src/js/media/models/attachments.js
- Timestamp:
- 01/29/2020 12:43:23 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/media/models/attachments.js
r46800 r47122 134 134 } 135 135 136 // If no `Attachments` model is provided to source the searches 137 // from, then automatically generate a source from the existing 138 // models. 136 // If no `Attachments` model is provided to source the searches from, 137 // then automatically generate a source from the existing models. 139 138 if ( ! this._source ) { 140 139 this._source = new Attachments( this.models ); … … 327 326 return deferred.resolveWith( this ).promise(); 328 327 } 329 // If we're mirroring another collection, forward `more` to 330 // the mirrored collection. Account for a race condition by 331 // checking if we're still mirroring that collection when 332 // the request resolves. 328 /* 329 * If we're mirroring another collection, forward `more` to 330 * the mirrored collection. Account for a race condition by 331 * checking if we're still mirroring that collection when 332 * the request resolves. 333 */ 333 334 mirroring.more( options ).done( function() { 334 335 if ( this === attachments.mirroring ) { … … 413 414 } 414 415 415 // Removes any uploading attachments, updates each attachment's 416 // menu order, and returns an object with an { id: menuOrder } 417 // mapping to pass to the request. 416 /* 417 * Removes any uploading attachments, updates each attachment's 418 * menu order, and returns an object with an { id: menuOrder } 419 * mapping to pass to the request. 420 */ 418 421 var attachments = this.chain().filter( function( attachment ) { 419 422 return ! _.isUndefined( attachment.id );
Note: See TracChangeset
for help on using the changeset viewer.