Changeset 26991
- Timestamp:
- 01/21/2014 05:36:24 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-models.js
r26985 r26991 185 185 Attachment = media.model.Attachment = Backbone.Model.extend({ 186 186 /** 187 * Triggered when attachment details change 188 * 187 189 * @param {string} method 188 * @param { Backbone.Model} model190 * @param {wp.media.model.Attachment} model 189 191 * @param {Object} [options={}] 192 * 190 193 * @returns {Promise} 191 194 */ … … 267 270 }, 268 271 /** 272 * Convert date strings into Date objects. 273 * 269 274 * @param {Object} resp 270 275 * @returns {Object} … … 275 280 } 276 281 277 // Convert date strings into Date objects.278 282 resp.date = new Date( resp.date ); 279 283 resp.modified = new Date( resp.modified ); … … 283 287 * @param {Object} data 284 288 * @param {Object} options 289 * 290 * @this Backbone.Model 291 * 285 292 * @returns {Promise} 286 293 */ … … 311 318 /** 312 319 * @param {string} id 313 * @param {Backbone.Model } attachment320 * @param {Backbone.Model|undefined} attachment 314 321 * @returns {wp.media.model.Attachment} 315 322 */ … … 480 487 481 488 /** 482 * @param { Backbone.Collection} attachments489 * @param {wp.media.model.Attachments} attachments 483 490 * @param {object} [options={}] 484 491 * @returns {wp.media.model.Attachments} Returns itself to allow chaining … … 497 504 }, 498 505 /** 499 * @param { Backbone.Collection} attachments506 * @param {wp.media.model.Attachments} attachments 500 507 * @returns {wp.media.model.Attachments} Returns itself to allow chaining 501 508 */ … … 510 517 }, 511 518 /** 512 * @param { Backbone.Collection} attachments519 * @param {wp.media.model.Attachments} attachments 513 520 * @returns {wp.media.model.Attachments} Returns itself to allow chaining 514 521 */ … … 530 537 * @access private 531 538 * 532 * @param { Backbone.Model} attachment533 * @param { Backbone.Collction} attachments539 * @param {wp.media.model.Attachments} attachment 540 * @param {wp.media.model.Attachments} attachments 534 541 * @param {Object} options 542 * 535 543 * @returns {wp.media.model.Attachments} Returns itself to allow chaining 536 544 */ … … 547 555 * @access private 548 556 * 549 * @param { Backbone.Collction} attachments557 * @param {wp.media.model.Attachments} attachments 550 558 * @param {Object} options 551 559 * @returns {wp.media.model.Attachments} Returns itself to allow chaining … … 555 563 }, 556 564 /** 557 * @param { Backbone.Collction} attachments565 * @param {wp.media.model.Attachments} attachments 558 566 * @returns {wp.media.model.Attachments} Returns itself to allow chaining 559 567 */ … … 760 768 * 761 769 * @static 762 * @returns { Attachments}770 * @returns {wp.media.model.Attachments} 763 771 */ 764 772 media.query = function( props ) { … … 1055 1063 1056 1064 /** 1057 * 1058 * @param {Backbone.Model} model 1065 * Triggered when toggling (clicking on) an attachment in the modal 1066 * 1067 * @param {undefined|boolean|wp.media.model.Attachment} model 1059 1068 * 1060 1069 * @fires wp.media.model.Selection#selection:single
Note: See TracChangeset
for help on using the changeset viewer.