8
0
فهرست منبع

Apply suggestions from code review

Co-authored-by: Anna Tomanek <a.tomanek@cksource.com>
Maciej 5 سال پیش
والد
کامیت
f7bafb41e6

+ 1 - 1
packages/ckeditor5-utils/docs/framework/guides/deep-dive/observables.md

@@ -202,7 +202,7 @@ The property has been "renamed" in the binding and from now on, whenever `comman
 
 Another use case is processing the bound property value, for instance, when a button should be disabled only if certain conditions are met. Passing a callback as the third parameter allows implementing a custom logic.
 
-In the example below, the `isEnabled` property will be set `true` only when `command.value` equals `'heading1`.
+In the example below, the `isEnabled` property will be set to `true` only when `command.value` equals `'heading1`.
 
 ```js
 const command = editor.commands.get( 'heading' );

+ 1 - 1
packages/ckeditor5-utils/src/observablemixin.js

@@ -786,7 +786,7 @@ function attachBindToListeners( observable, toBindings ) {
  *		button.bind( 'isEnabled' ).to( command, 'isEnabled', ui, 'isVisible',
  *			( isCommandEnabled, isUIVisible ) => isCommandEnabled && isUIVisible );
  *
- * Using custom callback allows to process the value before passing it to the target property:
+ * Using a custom callback allows processing the value before passing it to the target property:
  *
  *		button.bind( 'isEnabled' ).to( command, 'value', value => value === 'heading1' );
  *