Skip to content

Instantly share code, notes, and snippets.

@tommyilpazzo
Created August 26, 2016 14:55
Show Gist options
  • Save tommyilpazzo/7ea8b91936a50d068c8a6976b0c9e518 to your computer and use it in GitHub Desktop.
Save tommyilpazzo/7ea8b91936a50d068c8a6976b0c9e518 to your computer and use it in GitHub Desktop.
SFDC: Lightning JS function to fire an event
({
fireEvent: function(component, event, helper) {
var object = component.get("v.object");
var event = component.getEvent("eventName");
event.setParams({ "object": object });
event.fire();
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment