items
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
- There are no comments for this entry yet.