Kaynağa Gözat

Minor docs refactoring.

Oskar Wrobel 9 yıl önce
ebeveyn
işleme
307f4dcb42
1 değiştirilmiş dosya ile 4 ekleme ve 3 silme
  1. 4 3
      packages/ckeditor5-ui/src/template.js

+ 4 - 3
packages/ckeditor5-ui/src/template.js

@@ -177,10 +177,10 @@ export default class Template {
 			 *			on: {
 			 *				click: [
 			 *					// "clicked" event will be fired on `observableInstance` when "click" fires in DOM.
-			 *					bind( 'clicked' ),
+			 *					bind.to( 'clicked' ),
 			 *
 			 *					// A custom callback function will be executed when "click" fires in DOM.
-			 *					bind( () => {
+			 *					bind.to( () => {
 			 *						...
 			 *					} )
 			 *				]
@@ -195,7 +195,8 @@ export default class Template {
 			 *
 			 * @static
 			 * @method ui.Template.bind#to
-			 * @param {String} eventNameOrFunctionOrAttribute Name of {@link utils.ObservableMixin} used in the binding.
+			 * @param {String|Function} eventNameOrFunctionOrAttribute An attribute name of {@link utils.ObservableMixin} or a DOM
+			 * event name or an event callback.
 			 * @param {Function} [callback] Allows processing of the value. Accepts `Node` and `value` as arguments.
 			 * @return {ui.TemplateBinding}
 			 */