removeListener (JS API v2)
Version 2 API only.
removeListener
Method Signature | void ultraCart.removeListener(String event, function); |
|---|---|
Description | Removes a function as a listener to an ultraCart event |
Parameter | String event - the name of the event. Events are listed and discussed in the init() method documentation. |
Parameter | function - a javascript function. |
Result | no return value |
see addListener and fire
function doSomethingWhenShippingChanges(){
alert('shipping choice changed!');
}
ultraCart.removeListener(ultraCart.events.EVENT_SHIPPING_CHANGE, doSomethingWhenShippingChanges);