I want a unified way of raising/handling events in my JavaScript codebase. As I'm already using jQuery, it'd be nice to reuse its smarts. :)
On Apr 2, 5:35 pm, chrismarx <[EMAIL PROTECTED]> wrote: > interesting, for what purpose would you use this functionality? > why not just > > var monkey = {name:'Dave', > climb:function(){alert(this.name + 'is > climbing');} > monkey.climb(); > > On Apr 2, 8:02 am,Thom<[EMAIL PROTECTED]> wrote: > > > This works: > > > var monkey = { name: 'Dave' } > > $(monkey).bind('climb', function(monkey) { alert(this.name + ' is > > climbing!'); }); > > $(monkey).trigger('climb'); > > > I really just wanted to check that this was expected functionality - > > and isn't going to disappear anytime soon - as I'd like to lean on it > > quite heavily. :)