Loading ...
Sorry, an error occurred while loading the content.

Re: "fn has no properties" error in event.js

Expand Messages
  • jessekeller
    Thanks for the reply, Alex. I reorganized my constructor function to make sure things were defined in order -- now it works fine.
    Message 1 of 3 , Feb 21, 2006
    • 0 Attachment
      Thanks for the reply, Alex. I reorganized my constructor function to
      make sure things were defined in order -- now it works fine.

      --- In ydn-javascript@yahoogroups.com, Alex Russell <alex@...> wrote:

      > Yui's addListener is synchronous in most cases (including this one).
      > What I suspect is happening is that in the first case, you are calling
      > Init() before your constructor function has defined self.showNext.
      > Remember that in JavaScript, you're just "imprinting" the object
      > created with the "new" keyword inside your class constructor. The
      > concept of a class is something of a thin illusion.
      >
      > Since your example doesn't show (in either case) where showNext() is
      > defined, it's impossible to actually tell what's going wrong here.
    Your message has been successfully submitted and would be delivered to recipients shortly.