Reputation: 5652
Does anyone know if you can return a function for an event in jQuery? For example:
$(e).bind('ev', function(){
alert('Hello world!');
});
$(e).getEvent('ev'); // returns function(){alert('Hello world!');};
I don't even know if returning a function is possible in JavaScript at all. Just curious.
Thanks.
Upvotes: 0
Views: 71