attaches a handler to an inner event of Vault
name | string | the event's name, case-insensitive |
handler | function | the handler function |
context | any | the value will be accessible as "this" inside of the event handler |
vault.events.on("UploadComplete", function(files) {
console.log(files);
});
You can attach several handlers to the same event and all of them will be executed. If some of handlers return false, the related operations will be blocked. Event handlers are processed in the same order that they are attached.