|
$.currentEvent - Event Object
At times browsers default event objects may be needed inside the listeners. $.currentEvent property will provide the event object of the current event. Always use $.currentEvent should be used within a listener function.
Returns
Example 1
Using $.currentEvent to retrieve event object.
JS
$.domLoaded(function() {
$.get("div").on("click", function() {
console.log($.currentEvent);
});
});
| |||||
