Ticket Feedback (#3401)
Ticket Feedback (#3401)
Hi
Dan Switzer added a feature request asking for a special property
added to event objects when the event is triggered by $.trigger().
He provided a test case but I'm not yet convinced. Could you give your
opinion on this ?
Additional test cases from many users could help.
I think, in a general way, that if you bind a handler to a certain
event, then it should work the same for real and fake events. Else,
maybe you shouldn't be binding or relying on that event, keeping that
as a function/method instead.
I've seen stuff like:
$(...).click(function(){...}).click();
And I think that's just wrong. Someone else could had been binding to
that click too. I'd save a reference to the function and call it w/o
trigger().
Still.. that's just my POV.
Thanks
--
Ariel Flesler
http://flesler.blogspot.com