Hi Muskel, Muskel A a écrit : > Heya > I'm making a class which does a thing or two:)
How specific :-) > Inside my initialize function I have the following lines of code: > > this.eventMouseMove = this.mouseMove.bindAsEventListener(this); > Event.observe(document.body, 'mousemove', this.eventMouseSelect); "this.eventMouseMove" I guess, uh? > The problem is that I'm getting tons of '$A is not defined' if I move > my mouse while loading the page. The class is initialized on onload. > The class works just fine after the page finished loading. I tried > moving the two lines of code around to different places in my page. But > nothing helps. I've run into this before, but can't remember to what exactly it's due. It *is* an initialization issue. First of all, CHECK that your script is loaded *after* Prototype's JS. Second, if this isn't enough, please provide a minimal reproduceable case online for us to check out. -- Christophe Porteneuve aka TDD [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs -~----------~----~----~----~------~----~------~--~---
