triggers an inner event
name | string | the event's name, case-insensitive |
params | array | an array of the event-related data |
boolean | false, if some of the event handlers return false. Otherwise, true |
vault.events.on("CustomEvent", function(param1, param2){
return true;
});
var res = vault.events.fire("CustomEvent", [12, "abc"]);
Normally, events are called automatically and you don't need to use this method.