diff --git a/src/wp-admin/js/customize-controls.js b/src/wp-admin/js/customize-controls.js
index 5987bf4..a0eeec4 100644
|
a
|
b
|
|
| 3381 | 3381 | // Change objects contained within the main customize object to Settings. |
| 3382 | 3382 | api.defaultConstructor = api.Setting; |
| 3383 | 3383 | |
| 3384 | | // Create the collections for Controls, Sections and Panels. |
| | 3384 | /** |
| | 3385 | * Get instance of control by ID |
| | 3386 | * All controls' instances in _values property (object) with control ID as property |
| | 3387 | * |
| | 3388 | * @param {string} id ID of control |
| | 3389 | * @return {object|undefined} Control object or undefined |
| | 3390 | * |
| | 3391 | * @example wp.customize.control('background_color') Getting `background_color` control object |
| | 3392 | * @example wp.customize.control('background_color').setting.get() Getting `background_color` value |
| | 3393 | * @example wp.customize.control('background_color').setting.set( '#f00' ) Setting `background_color` to red |
| | 3394 | */ |
| 3385 | 3395 | api.control = new api.Values({ defaultConstructor: api.Control }); |
| | 3396 | |
| | 3397 | /** |
| | 3398 | * Get instance of section by ID |
| | 3399 | * All controls' instances in _values property (object) with control ID as property |
| | 3400 | * |
| | 3401 | * @param {string} ID of section |
| | 3402 | * @return {object|undefined} Section object or undefined |
| | 3403 | * |
| | 3404 | * @example wp.customize.section('title_tagline') Getting `title_tagline` section object |
| | 3405 | * @example wp.customize.section('title_tagline').expand() Expanding (Entering) `title_tagline` section |
| | 3406 | */ |
| 3386 | 3407 | api.section = new api.Values({ defaultConstructor: api.Section }); |
| | 3408 | |
| | 3409 | /** |
| | 3410 | * Get instance of panel by ID |
| | 3411 | * All panels' instances in _values property (object) with panel ID as property |
| | 3412 | * |
| | 3413 | * @param {string} id ID of panel |
| | 3414 | * @return {object|undefined} Panel object or undefined |
| | 3415 | * |
| | 3416 | * @example wp.customize.panel('nav_menus') Getting nav_menus panel object |
| | 3417 | * @example wp.customize.panel('nav_menus').expand() Expand (enter) nav_menus panel |
| | 3418 | */ |
| 3387 | 3419 | api.panel = new api.Values({ defaultConstructor: api.Panel }); |
| 3388 | 3420 | |
| 3389 | 3421 | /** |