WordPress.org

Make WordPress Core

Changeset 26991 for trunk


Ignore:
Timestamp:
01/21/2014 05:36:24 PM (7 years ago)
Author:
wonderboymusic
Message:

Make some @param types more specific in media-models.js.

See #26870.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/media-models.js

    r26985 r26991  
    185185    Attachment = media.model.Attachment = Backbone.Model.extend({
    186186        /**
     187         * Triggered when attachment details change
     188         *
    187189         * @param {string} method
    188          * @param {Backbone.Model} model
     190         * @param {wp.media.model.Attachment} model
    189191         * @param {Object} [options={}]
     192         *
    190193         * @returns {Promise}
    191194         */
     
    267270        },
    268271        /**
     272         * Convert date strings into Date objects.
     273         *
    269274         * @param {Object} resp
    270275         * @returns {Object}
     
    275280            }
    276281
    277             // Convert date strings into Date objects.
    278282            resp.date = new Date( resp.date );
    279283            resp.modified = new Date( resp.modified );
     
    283287         * @param {Object} data
    284288         * @param {Object} options
     289         *
     290         * @this Backbone.Model
     291         *
    285292         * @returns {Promise}
    286293         */
     
    311318        /**
    312319         * @param {string} id
    313          * @param {Backbone.Model} attachment
     320         * @param {Backbone.Model|undefined} attachment
    314321         * @returns {wp.media.model.Attachment}
    315322         */
     
    480487
    481488        /**
    482          * @param {Backbone.Collection} attachments
     489         * @param {wp.media.model.Attachments} attachments
    483490         * @param {object} [options={}]
    484491         * @returns {wp.media.model.Attachments} Returns itself to allow chaining
     
    497504        },
    498505        /**
    499          * @param {Backbone.Collection} attachments
     506         * @param {wp.media.model.Attachments} attachments
    500507         * @returns {wp.media.model.Attachments} Returns itself to allow chaining
    501508         */
     
    510517        },
    511518        /**
    512          * @param {Backbone.Collection} attachments
     519         * @param {wp.media.model.Attachments} attachments
    513520         * @returns {wp.media.model.Attachments} Returns itself to allow chaining
    514521         */
     
    530537         * @access private
    531538         *
    532          * @param {Backbone.Model} attachment
    533          * @param {Backbone.Collction} attachments
     539         * @param {wp.media.model.Attachments} attachment
     540         * @param {wp.media.model.Attachments} attachments
    534541         * @param {Object} options
     542         *
    535543         * @returns {wp.media.model.Attachments} Returns itself to allow chaining
    536544         */
     
    547555         * @access private
    548556         *
    549          * @param {Backbone.Collction} attachments
     557         * @param {wp.media.model.Attachments} attachments
    550558         * @param {Object} options
    551559         * @returns {wp.media.model.Attachments} Returns itself to allow chaining
     
    555563        },
    556564        /**
    557          * @param {Backbone.Collction} attachments
     565         * @param {wp.media.model.Attachments} attachments
    558566         * @returns {wp.media.model.Attachments} Returns itself to allow chaining
    559567         */
     
    760768     *
    761769     * @static
    762      * @returns {Attachments}
     770     * @returns {wp.media.model.Attachments}
    763771     */
    764772    media.query = function( props ) {
     
    10551063
    10561064        /**
    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
    10591068         *
    10601069         * @fires wp.media.model.Selection#selection:single
Note: See TracChangeset for help on using the changeset viewer.