On Oct 7, 3:21 am, Roland <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I have this little function within my class:
>
> var _setObservers = function(events, func, handle){
> if(!events) return;
> events = _getObservers(events);
> if(events.size() < 1) return;
> func = func.bindAsEventListener(this);
> handle = handle || this._handlers;
> events.each(function(event){
> alert(event); //-> fired!
> if(Object.isArray(handle)) handle.invoke('observe', event,
> func);
> else $(handle).observe(event, func);
> });
>
> }.bind(this);
>
> Firefox + IE shows no problems, Google Chrome however doesnt fire the
> observers BUT fires the alert...
>
> Whats wrong with chrome.. except its beta ;]
Could you this example to a minimal failing one?
Does `_getObservers` transform string into an array?
Does plain `handle.observe(eventName, handler)` work?
>
> Roland
--
kangax
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---