diff options
Diffstat (limited to 'src/js/_enqueues')
-rw-r--r-- | src/js/_enqueues/lib/color-picker.js | 2 | ||||
-rw-r--r-- | src/js/_enqueues/wp/customize/controls.js | 12 | ||||
-rw-r--r-- | src/js/_enqueues/wp/customize/nav-menus.js | 6 | ||||
-rw-r--r-- | src/js/_enqueues/wp/customize/widgets.js | 10 | ||||
-rw-r--r-- | src/js/_enqueues/wp/editor/base.js | 4 | ||||
-rw-r--r-- | src/js/_enqueues/wp/media/editor.js | 2 |
6 files changed, 18 insertions, 18 deletions
diff --git a/src/js/_enqueues/lib/color-picker.js b/src/js/_enqueues/lib/color-picker.js index 89e6db04a3..5206e39f1d 100644 --- a/src/js/_enqueues/lib/color-picker.js +++ b/src/js/_enqueues/lib/color-picker.js @@ -327,7 +327,7 @@ * * @since 3.5.0 * - * @returns {string} The element's color + * @returns {string} The element's color. */ color: function( newColor ) { if ( newColor === undef ) { diff --git a/src/js/_enqueues/wp/customize/controls.js b/src/js/_enqueues/wp/customize/controls.js index 0a131d188f..d9b7978394 100644 --- a/src/js/_enqueues/wp/customize/controls.js +++ b/src/js/_enqueues/wp/customize/controls.js @@ -1154,7 +1154,7 @@ * * @param {Boolean} active * @param {Object} [params] - * @returns {Boolean} false if state already applied + * @returns {Boolean} False if state already applied. */ _toggleActive: function ( active, params ) { var self = this; @@ -1173,7 +1173,7 @@ /** * @param {Object} [params] - * @returns {Boolean} false if already active + * @returns {Boolean} False if already active. */ activate: function ( params ) { return this._toggleActive( true, params ); @@ -1181,7 +1181,7 @@ /** * @param {Object} [params] - * @returns {Boolean} false if already inactive + * @returns {Boolean} False if already inactive. */ deactivate: function ( params ) { return this._toggleActive( false, params ); @@ -1201,7 +1201,7 @@ * @param {Boolean} expanded - The new state to apply. * @param {Object} [params] - Object containing options for expand/collapse. * @param {Function} [params.completeCallback] - Function to call when expansion/collapse is complete. - * @returns {Boolean} false if state already applied or active state is false + * @returns {Boolean} False if state already applied or active state is false. */ _toggleExpanded: function( expanded, params ) { var instance = this, previousCompleteCallback; @@ -1238,7 +1238,7 @@ /** * @param {Object} [params] - * @returns {Boolean} false if already expanded or if inactive. + * @returns {Boolean} False if already expanded or if inactive. */ expand: function ( params ) { return this._toggleExpanded( true, params ); @@ -1246,7 +1246,7 @@ /** * @param {Object} [params] - * @returns {Boolean} false if already collapsed. + * @returns {Boolean} False if already collapsed. */ collapse: function ( params ) { return this._toggleExpanded( false, params ); diff --git a/src/js/_enqueues/wp/customize/nav-menus.js b/src/js/_enqueues/wp/customize/nav-menus.js index 19f0d2060f..fe58cb58da 100644 --- a/src/js/_enqueues/wp/customize/nav-menus.js +++ b/src/js/_enqueues/wp/customize/nav-menus.js @@ -1962,7 +1962,7 @@ * * @param {Boolean} expanded * @param {Object} [params] - * @returns {Boolean} false if state already applied + * @returns {Boolean} False if state already applied. */ _toggleExpanded: api.Section.prototype._toggleExpanded, @@ -1970,7 +1970,7 @@ * @since 4.6.0 * * @param {Object} [params] - * @returns {Boolean} false if already expanded + * @returns {Boolean} False if already expanded. */ expand: api.Section.prototype.expand, @@ -1990,7 +1990,7 @@ * @since 4.6.0 * * @param {Object} [params] - * @returns {Boolean} false if already collapsed + * @returns {Boolean} False if already collapsed. */ collapse: api.Section.prototype.collapse, diff --git a/src/js/_enqueues/wp/customize/widgets.js b/src/js/_enqueues/wp/customize/widgets.js index 1506a31b8a..5a0fbf2c3c 100644 --- a/src/js/_enqueues/wp/customize/widgets.js +++ b/src/js/_enqueues/wp/customize/widgets.js @@ -1340,7 +1340,7 @@ * * @param {Boolean} expanded * @param {Object} [params] - * @returns {Boolean} false if state already applied + * @returns {Boolean} False if state already applied. */ _toggleExpanded: api.Section.prototype._toggleExpanded, @@ -1348,7 +1348,7 @@ * @since 4.1.0 * * @param {Object} [params] - * @returns {Boolean} false if already expanded + * @returns {Boolean} False if already expanded. */ expand: api.Section.prototype.expand, @@ -1365,7 +1365,7 @@ * @since 4.1.0 * * @param {Object} [params] - * @returns {Boolean} false if already collapsed + * @returns {Boolean} False if already collapsed. */ collapse: api.Section.prototype.collapse, @@ -2060,8 +2060,8 @@ }, /** - * @param {string} widgetId or an id_base for adding a previously non-existing widget - * @returns {object|false} widget_form control instance, or false on error + * @param {string} widgetId or an id_base for adding a previously non-existing widget. + * @returns {object|false} widget_form control instance, or false on error. */ addWidget: function( widgetId ) { var self = this, controlHtml, $widget, controlType = 'widget_form', controlContainer, controlConstructor, diff --git a/src/js/_enqueues/wp/editor/base.js b/src/js/_enqueues/wp/editor/base.js index 0620b312de..050f24692d 100644 --- a/src/js/_enqueues/wp/editor/base.js +++ b/src/js/_enqueues/wp/editor/base.js @@ -658,8 +658,8 @@ window.wp = window.wp || {}; * Check the notes in the comments in the code below for more information on some gotchas * and why this solution was chosen. * - * @param {Object} editor The editor where we must find the selection - * @returns {(null|Object)} The selection range position in the editor + * @param {Object} editor The editor where we must find the selection. + * @returns {(null|Object)} The selection range position in the editor. */ function findBookmarkedPosition( editor ) { // Get the TinyMCE `window` reference, since we need to access the raw selection. diff --git a/src/js/_enqueues/wp/media/editor.js b/src/js/_enqueues/wp/media/editor.js index fdd0cf78a5..2b4055aea3 100644 --- a/src/js/_enqueues/wp/media/editor.js +++ b/src/js/_enqueues/wp/media/editor.js @@ -21,7 +21,7 @@ * * @param {object} attrs Map of props from a shortcode or settings. * @param {string} key The key within the passed map to check for a value. - * @returns {mixed|undefined} The original or coerced value of key within attrs + * @returns {mixed|undefined} The original or coerced value of key within attrs. */ wp.media.coerce = function ( attrs, key ) { if ( _.isUndefined( attrs[ key ] ) && ! _.isUndefined( this.defaults[ key ] ) ) { |