simpleCart(js)

items
Items:
Total:

simpleCart.bind( eventname , callback )

arguments:

  • eventname: string representing the name of an event
  • callback: function that will be called when the event is fired

returns:

  • simpleCart
simpleCart.bind( 'error' , function(message){
    alert( message );
});

When an error event is triggered, the function will be called and the error message will be alerted.

Please view the Event reference for existing event names and arguments supplied.

Comments

  1. There are no comments for this entry yet.
Commenting is not available in this channel entry.