Changed JavaScript API name for signal connection and disconnection
[platform/core/uifw/dali-toolkit.git] / plugins / dali-script-v8 / docs / content / actor.js
index 9f051fb..98b35a4 100644 (file)
@@ -124,7 +124,7 @@ function OnPressed( actor, touchEvent )
 }
   
 // connect to touch events
 }
   
 // connect to touch events
-myActor.connect( "touched", onPressed );
+myActor.on( "touched", onPressed );
 
 ```
 
 
 ```
 
@@ -143,7 +143,7 @@ hoverEvent = {
 }
 ```
       // connect to touch events
 }
 ```
       // connect to touch events
-      myActor.connect( "hovered", onHover);
+      myActor.on( "hovered", onHover);
 
 #### Mouse wheel event
 
 
 #### Mouse wheel event
 
@@ -161,7 +161,7 @@ mouseWheelEvent = {
 }
   
 // connect to touch events
 }
   
 // connect to touch events
-myActor.connect( "mouseWheelEvent", onMouseWheel );
+myActor.on( "mouseWheelEvent", onMouseWheel );
 ```
 #### Key events
 
 ```
 #### Key events