I noted that firing custom events seems to work on any object, for instance:
var myObject = {}; $(myObject).bind(...) $(myObject).triggerHandler(...) Simon Willison had written a tutorial that mentioned using "document" instead for that purpose, and I seem to recall yet another mention of using $("*") or something like that. What is the recommended best practice for custom events? Is it okay to bind them to non-DOM javascript objects (and are there any downsides to doing so)?