Make WordPress Core

Changeset 27000


Ignore:
Timestamp:
01/22/2014 05:16:56 PM (11 years ago)
Author:
wonderboymusic
Message:

Add the @namespace annotation where appropriate in media-editor.js. Also indicate the default value of a few params via the [options={}] syntax.

See #26870.

File:
1 edited

Legend:

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

    r26990 r27000  
    1313    /**
    1414     * wp.media.string
     15     * @namespace
    1516     */
    1617    wp.media.string = {
     
    2021         * attachment's type.
    2122         *
    22          * @global wp.media.view.settings.defaultProps
    23          *
    24          * @param {Object} props Attachment details (align, link, size, etc).
     23         * @global wp.media.view.settings
     24         *
     25         * @param {Object} [props={}] Attachment details (align, link, size, etc).
    2526         * @param {Object} attachment The attachment object, media version of Post.
    2627         * @returns {Object} Joined props
     
    275276    /**
    276277     * wp.media.gallery
    277      *
    278      * @type {Object}
     278     * @namespace
    279279     */
    280280    wp.media.gallery = (function() {
     
    502502    /**
    503503     * wp.media.featuredImage
     504     * @namespace
    504505     */
    505506    wp.media.featuredImage = {
     
    611612    /**
    612613     * wp.media.editor
     614     * @namespace
    613615     */
    614616    wp.media.editor = {
     
    884886        /**
    885887         * @param {string} id
    886          * @param {Object} options
     888         * @param {Object} [options={}]
    887889         *
    888890         * @this wp.media.editor
Note: See TracChangeset for help on using the changeset viewer.