Changeset 27032
- Timestamp:
- 01/25/2014 08:55:47 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-models.js
r27031 r27032 153 153 * @param {Number} [length=30] 154 154 * @param {String} [replacement=…] 155 * @returns {String} 155 * @returns {String} The string, unless length is greater than string.length. 156 156 */ 157 157 truncate: function( string, length, replacement ) { … … 176 176 * 177 177 * @static 178 * @param {String} id 178 * @param {String} id A string used to identify a model. 179 179 * @returns {wp.media.model.Attachment} 180 180 */ … … 318 318 }, { 319 319 /** 320 * Add a model to the end of the static 'all' collection and return it. 321 * 320 322 * @static 321 323 * @param {Object} attrs … … 326 328 }, 327 329 /** 330 * Retrieve a model, or add it to the end of the static 'all' collection before returning it. 331 * 328 332 * @static 329 * @param {string} id 333 * @param {string} id A string used to identify a model. 330 334 * @param {Backbone.Model|undefined} attachment 331 335 * @returns {wp.media.model.Attachment} … … 348 352 model: Attachment, 349 353 /** 350 * @param {Array |Object} models354 * @param {Array} [models=[]] Array of models used to populate the collection. 351 355 * @param {Object} [options={}] 352 356 */ … … 499 503 * @param {wp.media.model.Attachments} attachments 500 504 * @param {object} [options={}] 505 * 506 * @fires wp.media.model.Attachments#reset 507 * 501 508 * @returns {wp.media.model.Attachments} Returns itself to allow chaining 502 509 */ … … 704 711 /** 705 712 * @static 713 * Overrides Backbone.Collection.comparator 714 * 706 715 * @param {Backbone.Model} a 707 716 * @param {Backbone.Model} b 708 717 * @param {Object} options 709 * @returns {Number} 718 * @returns {Number} -1 if the first model should come before the second, 719 * 0 if they are of the same rank and 720 * 1 if the first model should come after. 710 721 */ 711 722 comparator: function( a, b, options ) { … … 821 832 * @global wp.Uploader 822 833 * 823 * @param {Array} models834 * @param {Array} [models=[]] Array of models used to populate the collection. 824 835 * @param {Object} [options={}] 825 836 */ … … 983 994 /** 984 995 * @static 996 * @method 997 * 998 * @returns {wp.media.model.Query} A new query. 985 999 */ 986 1000 // Caches query objects so queries can be easily reused. … … 1072 1086 * it receives no parameters. 1073 1087 * 1074 * @param {Array} models1075 * @param {Object} options1088 * @param {Array} [models=[]] Array of models used to populate the collection. 1089 * @param {Object} [options={}] 1076 1090 */ 1077 1091 initialize: function( models, options ) {
Note: See TracChangeset
for help on using the changeset viewer.