|
addEventListener Method
Description
This method attaches the specified listener to the specified event.
Arguments
This method accepts the following arguments:
|
eventName
|
String value. Required.
The name of the event to which the specified handler will be attached.
|
|
listener
|
Reference to a function or a listener object. Required.
The listener to be called when the specified event is fired. Note that by default this listener will be invoked with this referring to the TruveoVideoSearch object. To change the scope from
which the listener is invoked, use the Delegate class.
|
Syntax
The following code sample illustrates how this method can be invoked:
var TVS = new TruveoVideoSearch(appid);
...
TVS.addEventListener(eventName, listener);
Return Value
This method returns no value.
Response Data Objects
This method does not update any data objects.
Events
This method does not fire any events.
Errors
This method does not throw any errors.
|