Make WordPress Core

Changeset 42931


Ignore:
Timestamp:
04/03/2018 07:48:11 PM (8 years ago)
Author:
ocean90
Message:

Media: Update built files after [42798].

See #43500.

File:
1 edited

Legend:

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

    r42740 r42931  
    12441244 * A state for editing a gallery's images and settings.
    12451245 *
    1246  * @memberOf wp.media.controller
     1246 * @since 3.5.0
    12471247 *
    12481248 * @class
     
    12501250 * @augments wp.media.controller.State
    12511251 * @augments Backbone.Model
     1252 *
     1253 * @memberOf wp.media.controller
    12521254 *
    12531255 * @param {object}                     [attributes]                       The attributes hash passed to the state.
     
    12651267 * @param {boolean}                    [attributes.displaySettings=true]  Whether to show the attachment display settings interface.
    12661268 * @param {boolean}                    [attributes.dragInfo=true]         Whether to show instructional text about the attachments being sortable.
    1267  * @param {int}                        [attributes.idealColumnWidth=170]  The ideal column width in pixels for attachments.
     1269 * @param {number}                     [attributes.idealColumnWidth=170]  The ideal column width in pixels for attachments.
    12681270 * @param {boolean}                    [attributes.editing=false]         Whether the gallery is being created, or editing an existing instance.
    1269  * @param {int}                        [attributes.priority=60]           The priority for the state link in the media menu.
     1271 * @param {number}                     [attributes.priority=60]           The priority for the state link in the media menu.
    12701272 * @param {boolean}                    [attributes.syncSelection=false]   Whether the Attachments selection should be persisted from the last state.
    12711273 *                                                                        Defaults to false for this state, because the library passed in  *is* the selection.
     
    13931395 * A state for selecting more images to add to a gallery.
    13941396 *
    1395  * @memberOf wp.media.controller
     1397 * @since 3.5.0
    13961398 *
    13971399 * @class
     
    14001402 * @augments Backbone.Model
    14011403 *
    1402  * @param {object}                     [attributes]                         The attributes hash passed to the state.
     1404 * @memberof wp.media.controller
     1405 *
     1406 * @param {Object}                     [attributes]                         The attributes hash passed to the state.
    14031407 * @param {string}                     [attributes.id=gallery-library]      Unique identifier.
    14041408 * @param {string}                     [attributes.title=Add to Gallery]    Title for the state. Displays in the frame's title region.
     
    14171421 * @param {boolean}                    [attributes.autoSelect=true]         Whether an uploaded attachment should be automatically added to the selection.
    14181422 * @param {boolean}                    [attributes.contentUserSetting=true] Whether the content region's mode should be set and persisted per user.
    1419  * @param {int}                        [attributes.priority=100]            The priority for the state link in the media menu.
     1423 * @param {number}                     [attributes.priority=100]            The priority for the state link in the media menu.
    14201424 * @param {boolean}                    [attributes.syncSelection=false]     Whether the Attachments selection should be persisted from the last state.
    14211425 *                                                                          Defaults to false because for this state, because the library of the Edit Gallery state is the selection.
     
    14341438
    14351439    /**
     1440     * Initializes the library. Creates a library of images if a library isn't supplied.
     1441     *
    14361442     * @since 3.5.0
     1443     *
     1444     * @returns {void}
    14371445     */
    14381446    initialize: function() {
    1439         // If a library wasn't supplied, create a library of images.
    14401447        if ( ! this.get('library') ) {
    14411448            this.set( 'library', wp.media.query({ type: 'image' }) );
     
    14461453
    14471454    /**
     1455     * Activates the library.
     1456     *
     1457     * Removes all event listeners if in edit mode. Creates a validator to check an attachment.
     1458     * Resets library and re-enables event listeners. Activates edit mode. Calls the parent's activate method.
     1459     *
    14481460     * @since 3.5.0
     1461     *
     1462     * @returns {void}
    14491463     */
    14501464    activate: function() {
     
    14561470        }
    14571471
    1458         // Accepts attachments that exist in the original library and
    1459         // that do not exist in gallery's library.
     1472        /*
     1473         * Accept attachments that exist in the original library but
     1474         * that do not exist in gallery's library yet.
     1475         */
    14601476        library.validator = function( attachment ) {
    14611477            return !! this.mirroring.get( attachment.cid ) && ! edit.get( attachment.cid ) && Selection.prototype.validator.apply( this, arguments );
    14621478        };
    14631479
    1464         // Reset the library to ensure that all attachments are re-added
    1465         // to the collection. Do so silently, as calling `observe` will
    1466         // trigger the `reset` event.
     1480        /*
     1481         * Reset the library to ensure that all attachments are re-added
     1482         * to the collection. Do so silently, as calling `observe` will
     1483         * trigger the `reset` event.
     1484         */
    14671485        library.reset( library.mirroring.models, { silent: true });
    14681486        library.observe( edit );
Note: See TracChangeset for help on using the changeset viewer.