Make WordPress Core

Changeset 43142


Ignore:
Timestamp:
05/03/2018 02:47:16 PM (7 years ago)
Author:
atimmer
Message:

Docs: Improve JSDoc for media/controllers/gallery-edit.js.

Amends [43141] - includes the built media files.

See #43866.

File:
1 edited

Legend:

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

    r43056 r43142  
    12531253 * @memberOf wp.media.controller
    12541254 *
    1255  * @param {object}                     [attributes]                       The attributes hash passed to the state.
     1255 * @param {Object}                     [attributes]                       The attributes hash passed to the state.
    12561256 * @param {string}                     [attributes.id=gallery-edit]       Unique identifier.
    12571257 * @param {string}                     [attributes.title=Edit Gallery]    Title for the state. Displays in the frame's title region.
     
    12961296
    12971297    /**
     1298     * Initializes the library.
     1299     *
     1300     * Creates a selection if a library isn't supplied and creates an attachment
     1301     * view if no attachment view is supplied.
     1302     *
    12981303     * @since 3.5.0
     1304     *
     1305     * @return {void}
    12991306     */
    13001307    initialize: function() {
     
    13131320
    13141321    /**
     1322     * Activates the library.
     1323     *
     1324     * Limits the library to images, watches for uploaded attachments. Watches for
     1325     * the browse event on the frame and binds it to gallerySettings.
     1326     *
    13151327     * @since 3.5.0
     1328     *
     1329     * @return {void}
    13161330     */
    13171331    activate: function() {
     
    13301344
    13311345    /**
     1346     * Deactivates the library.
     1347     *
     1348     * Stops watching for uploaded attachments and browse events.
     1349     *
    13321350     * @since 3.5.0
     1351     *
     1352     * @return {void}
    13331353     */
    13341354    deactivate: function() {
     
    13421362
    13431363    /**
     1364     * Adds the gallery settings to the sidebar and adds a reverse button to the
     1365     * toolbar.
     1366     *
    13441367     * @since 3.5.0
    13451368     *
    1346      * @param browser
     1369     * @param {wp.media.view.Frame} browser The file browser.
     1370     *
     1371     * @return {void}
    13471372     */
    13481373    gallerySettings: function( browser ) {
Note: See TracChangeset for help on using the changeset viewer.