瀏覽代碼

Rename internal variable to labeledFieldView.

Maciej Gołaszewski 5 年之前
父節點
當前提交
12fd8344d4
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      packages/ckeditor5-table/src/ui/utils.js

+ 5 - 5
packages/ckeditor5-table/src/ui/utils.js

@@ -425,8 +425,8 @@ export const defaultColors = [
  * @returns {Function}
  */
 export function getLabeledColorInputCreator( options ) {
-	return ( labeledView, viewUid, statusUid ) => {
-		const inputView = new ColorInputView( labeledView.locale, {
+	return ( labeledFieldView, viewUid, statusUid ) => {
+		const inputView = new ColorInputView( labeledFieldView.locale, {
 			colorDefinitions: colorConfigToColorGridDefinitions( options.colorConfig ),
 			columns: options.columns
 		} );
@@ -436,13 +436,13 @@ export function getLabeledColorInputCreator( options ) {
 			ariaDescribedById: statusUid
 		} );
 
-		inputView.bind( 'isReadOnly' ).to( labeledView, 'isEnabled', value => !value );
-		inputView.bind( 'errorText' ).to( labeledView );
+		inputView.bind( 'isReadOnly' ).to( labeledFieldView, 'isEnabled', value => !value );
+		inputView.bind( 'errorText' ).to( labeledFieldView );
 
 		inputView.on( 'input', () => {
 			// UX: Make the error text disappear and disable the error indicator as the user
 			// starts fixing the errors.
-			labeledView.errorText = null;
+			labeledFieldView.errorText = null;
 		} );
 
 		return inputView;