[jQuery] jQuery events on plain old JavaScript objects
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. :)