About custom events
About custom events
Can we modify bind() so that it doesn't require attachEvent or
addListener? For example I wanted to use my class (function) to
publish some custom events, but it fails for two reasons:
1. Given a function f, I cannot do jQuery(f).bind
(customEventName, ...) because its seen as jQuery(document).ready
(f).bind...
2. Even if it were accepted or if I used an object, o, in place of f,
neither have attachEvent nor addListener. I can spoof it with var o=
{attachEvent:function(){}}. After which I can use jQuery(o).bind(...)
Gabriel
Sent from my iPhone