kopmanis-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Feb-20 22:13 UTC
Prototype 1.5 error on load
We''re using Prototype 1.5.0 and we''re seeing the following error in all browsers upon simply including the prototype.js file: Error: event has no properties it refers to line 2216. Upon looking at line 2216 and the surrounding code, I have NO idea why the error is popping up. It seems to be pretty consistent no matter where we go to test it. Any clues or fixes? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
kopmanis-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org a écrit :> Upon looking at line 2216 and the surrounding code, I have NO idea why > the error is popping up. It seems to be pretty consistent no matter > where we go to test it.Hmmm. Event.stop will trigger this if its event argument is undefined. But NOTHING in Prototype calls this method. So external code calls it. Quite likely code you wrote. My first suggestion is to look at any event handler you wrote (particularly onload-related ones) and check that the argument they pass to Event.stop is indeed the event object they got as their first argument. Second, verify that NONE of these handlers got bound the DOM-Level-0 way: <someelement onblah="yourHandler"> In this context, MSIE (I don''t know about others) will NOT pass the event object around. OTOH, any handler properly bound (using Event.observe, for instance) will get the proper event object as its first argument. ''HTH -- Christophe Porteneuve a.k.a. TDD "[They] did not know it was impossible, so they did it." --Mark Twain Email: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---