Changeset 63598 for trunk/src/js/media/models/attachments.js
- Timestamp:
- 09/11/2026 06:29:08 AM (7 hours ago)
- File:
-
- 1 edited
-
trunk/src/js/media/models/attachments.js (modified) (16 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/media/models/attachments.js
r63521 r63598 31 31 * Initializes the Attachments collection. 32 32 * 33 * @param {Array} [models=[]]Array of models used to populate the collection.34 * @param {Object} [options={}] 33 * @param {Array} [models=[]] Optional. Array of models used to populate the collection. 34 * @param {Object} [options={}] Optional. Additional options for the collection. 35 35 */ 36 36 initialize: function( models, options ) { … … 82 82 * @access private 83 83 * 84 * @param {Backbone.Model} model 85 * @param {string} orderby84 * @param {Backbone.Model} model The model that triggered the change. 85 * @param {string} orderby The new orderby value. 86 86 */ 87 87 _changeOrderby: function( model, orderby ) { … … 102 102 * @access private 103 103 * 104 * @param {Backbone.Model} model 105 * @param {boolean} query104 * @param {Backbone.Model} model The model that triggered the change. 105 * @param {boolean} query The new query value. 106 106 */ 107 107 _changeQuery: function( model, query ) { … … 118 118 * @access private 119 119 * 120 * @param {Backbone.Model} model 120 * @param {Backbone.Model} model The model that triggered the change. 121 121 */ 122 122 _changeFilteredProps: function( model ) { … … 164 164 * Checks whether an attachment is valid. 165 165 * 166 * @param {wp.media.model.Attachment} attachment 166 * @param {wp.media.model.Attachment} attachment The attachment to validate. 167 167 * @return {boolean} True if the attachment is valid, false otherwise. 168 168 */ … … 179 179 * Adds or removes an attachment to the collection depending on its validity. 180 180 * 181 * @param {wp.media.model.Attachment} attachment 182 * @param {Object} options181 * @param {wp.media.model.Attachment} attachment The attachment to validate and potentially add or remove. 182 * @param {Object} options Additional options for the operation. 183 183 * @return {wp.media.model.Attachments} Returns itself to allow chaining. 184 184 */ … … 199 199 * Adds or removes all attachments from another collection depending on each one's validity. 200 200 * 201 * @param {wp.media.model.Attachments} attachments 202 * @param {Object} [options={}]201 * @param {wp.media.model.Attachments} attachments The attachments collection to validate against. 202 * @param {Object} [options={}] Additional options for the operation. 203 203 * 204 204 * @fires wp.media.model.Attachments#reset … … 282 282 * @access private 283 283 * 284 * @param {wp.media.model.Attachments} attachment 285 * @param {wp.media.model.Attachments} attachments 286 * @param {Object} options284 * @param {wp.media.model.Attachments} attachment The attachment to validate. 285 * @param {wp.media.model.Attachments} attachments The attachments collection the attachment belongs to. 286 * @param {Object} options Additional options for the operation. 287 287 * 288 288 * @return {wp.media.model.Attachments} Returns itself to allow chaining. … … 302 302 * @access private 303 303 * 304 * @param {wp.media.model.Attachments} attachments 305 * @param {Object} options304 * @param {wp.media.model.Attachments} attachments The attachments collection to validate against. 305 * @param {Object} options Additional options for the operation. 306 306 * @return {wp.media.model.Attachments} Returns itself to allow chaining. 307 307 */ … … 356 356 * server persistence by itself. 357 357 * 358 * @param {Object} options 358 * @param {Object} options Additional options for the operation. 359 359 * @return {Promise} A promise that resolves when the request is complete. 360 360 */ … … 425 425 * 426 426 * @param {Object|Array} response The raw response Object/Array. 427 * @param {Object} xhr427 * @param {Object} xhr The XMLHttpRequest object. 428 428 * @return {Array} The array of model attributes to be added to the collection 429 429 */ … … 506 506 * and its subclasses. @see wp.media.model.Attachments._changeOrderby(). 507 507 * 508 * @param {Backbone.Model} a 509 * @param {Backbone.Model} b 510 * @param {Object} options508 * @param {Backbone.Model} a The first attachment model to compare. 509 * @param {Backbone.Model} b The second attachment model to compare. 510 * @param {Object} options Additional options for the comparison. 511 511 * @return {number} -1 if the first model should come before the second, 512 512 * 0 if they are of the same rank and … … 543 543 * to our server-side searching. 544 544 * 545 * @param {wp.media.model.Attachment} attachment 545 * @param {wp.media.model.Attachment} attachment The attachment to filter based on the search query. 546 546 * 547 547 * @this wp.media.model.Attachments … … 563 563 * 564 564 * @static 565 * @param {wp.media.model.Attachment} attachment 565 * @param {wp.media.model.Attachment} attachment The attachment to filter based on its type. 566 566 * 567 567 * @this wp.media.model.Attachments … … 592 592 * 593 593 * @static 594 * @param {wp.media.model.Attachment} attachment 594 * @param {wp.media.model.Attachment} attachment The attachment to filter based on its uploadedTo property. 595 595 * 596 596 * @this wp.media.model.Attachments … … 610 610 * 611 611 * @static 612 * @param {wp.media.model.Attachment} attachment 612 * @param {wp.media.model.Attachment} attachment The attachment to filter based on its status property. 613 613 * 614 614 * @this wp.media.model.Attachments
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)