simpleCart(js)

items
Items:
Total:

simpleCart.trigger( eventname )

arguments:

  • eventname: name of event to trigger

Trigger an event, and thus all callbacks binded to that event.


simpleCart.bind( 'awesomeEvent' , function(){
  console.log( "an awesome event just happened!" );
});

simpleCart.trigger( "awesomeEvent" );

Comments

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