--- a/wp/wp-admin/js/widgets/custom-html-widgets.js Tue Oct 22 16:11:46 2019 +0200
+++ b/wp/wp-admin/js/widgets/custom-html-widgets.js Tue Dec 15 13:49:49 2020 +0100
@@ -44,7 +44,7 @@
* @param {jQuery} options.el - Control field container element.
* @param {jQuery} options.syncContainer - Container element where fields are synced for the server.
*
- * @returns {void}
+ * @return {void}
*/
initialize: function initialize( options ) {
var control = this;
@@ -97,7 +97,7 @@
* A field will only be updated if it is not currently focused, to avoid
* overwriting content that the user is entering.
*
- * @returns {void}
+ * @return {void}
*/
updateFields: function updateFields() {
var control = this, syncInput;
@@ -123,7 +123,7 @@
* Show linting error notice.
*
* @param {Array} errorAnnotations - Error annotations.
- * @returns {void}
+ * @return {void}
*/
updateErrorNotice: function( errorAnnotations ) {
var control = this, errorNotice, message = '', customizeSetting;
@@ -164,7 +164,7 @@
/**
* Initialize editor.
*
- * @returns {void}
+ * @return {void}
*/
initializeEditor: function initializeEditor() {
var control = this, settings;
@@ -180,7 +180,7 @@
*
* @ignore
*
- * @returns {void}
+ * @return {void}
*/
onTabPrevious: function onTabPrevious() {
control.fields.title.focus();
@@ -191,7 +191,7 @@
*
* @ignore
*
- * @returns {void}
+ * @return {void}
*/
onTabNext: function onTabNext() {
var tabbables = control.syncContainer.add( control.syncContainer.parent().find( '.widget-position, .widget-control-actions' ) ).find( ':tabbable' );
@@ -204,7 +204,7 @@
* @ignore
*
* @param {Array} errorAnnotations - Error notifications.
- * @returns {void}
+ * @return {void}
*/
onChangeLintingErrors: function onChangeLintingErrors( errorAnnotations ) {
control.currentErrorAnnotations = errorAnnotations;
@@ -216,7 +216,7 @@
* @ignore
*
* @param {Array} errorAnnotations - Error annotations.
- * @returns {void}
+ * @return {void}
*/
onUpdateErrorNotice: function onUpdateErrorNotice( errorAnnotations ) {
control.saveButton.toggleClass( 'validation-blocked disabled', errorAnnotations.length > 0 );
@@ -288,7 +288,7 @@
* @param {jQuery.Event} event - Event.
* @param {jQuery} widgetContainer - Widget container element.
*
- * @returns {void}
+ * @return {void}
*/
component.handleWidgetAdded = function handleWidgetAdded( event, widgetContainer ) {
var widgetForm, idBase, widgetControl, widgetId, animatedCheckDelay = 50, renderWhenAnimationDone, fieldContainer, syncContainer;
@@ -347,7 +347,7 @@
*
* @alias wp.customHtmlWidgets.setupAccessibleMode
*
- * @returns {void}
+ * @return {void}
*/
component.setupAccessibleMode = function setupAccessibleMode() {
var widgetForm, idBase, widgetControl, fieldContainer, syncContainer;
@@ -384,7 +384,7 @@
*
* @param {jQuery.Event} event - Event.
* @param {jQuery} widgetContainer - Widget container element.
- * @returns {void}
+ * @return {void}
*/
component.handleWidgetUpdated = function handleWidgetUpdated( event, widgetContainer ) {
var widgetForm, widgetId, widgetControl, idBase;
@@ -413,9 +413,9 @@
*
* @alias wp.customHtmlWidgets.init
*
- * @param {object} settings - Options for code editor, exported from PHP.
+ * @param {Object} settings - Options for code editor, exported from PHP.
*
- * @returns {void}
+ * @return {void}
*/
component.init = function init( settings ) {
var $document = $( document );