|
@@ -177,10 +177,10 @@ export default class Template {
|
|
|
* on: {
|
|
* on: {
|
|
|
* click: [
|
|
* click: [
|
|
|
* // "clicked" event will be fired on `observableInstance` when "click" fires in DOM.
|
|
* // "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.
|
|
* // A custom callback function will be executed when "click" fires in DOM.
|
|
|
- * bind( () => {
|
|
|
|
|
|
|
+ * bind.to( () => {
|
|
|
* ...
|
|
* ...
|
|
|
* } )
|
|
* } )
|
|
|
* ]
|
|
* ]
|
|
@@ -195,7 +195,8 @@ export default class Template {
|
|
|
*
|
|
*
|
|
|
* @static
|
|
* @static
|
|
|
* @method ui.Template.bind#to
|
|
* @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.
|
|
* @param {Function} [callback] Allows processing of the value. Accepts `Node` and `value` as arguments.
|
|
|
* @return {ui.TemplateBinding}
|
|
* @return {ui.TemplateBinding}
|
|
|
*/
|
|
*/
|