Can't Modify CustomEvent Data
I need to fire a custom event each time when clicked on div with different data attached. Here is a simplified variant of my code (JSFiddle):
Copy
Or you would need to init the custom Event each time to set the details property like this:
arguments.callee.event.initCustomEvent("selectItem", true, true, event_data);
and details
property will have new updated value each time the event is dispacthed.
Post a Comment for "Can't Modify CustomEvent Data"