it would only really matter if you were triggering dom events. Also, the
point about it going the event system and bubbling and whatnot still is
valid.
~phiggins
On 2/3/11 7:38 AM, Fran wrote:
I like this really tiny but clever plugin. I'll definitely keep it in
mine, but still I have the question whether using $(document) or
$('body') makes any different. Any idea ?
Thanks
On 03/02/11 12:12, Mads Erik Forberg wrote:
Den 03.02.2011 13:03, skrev Fran:
Hi guys,
I know this is more jQuery related question and perhaps it'd be
better to ask in its forum but I'll drop it in case some jQuery
experts in this group could answer it. Is there any reason why I
should be using "$(document).bind/trigger" over
"$('body').bind/trigger" (or the other way around) if I wanted to
use it as a PubSub ? Any different in terms of performance or others ?
Thanks
Hello,
maybe it's worth checking out this jQuery plugin for your pub/sub
needs: https://gist.github.com/661855
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]