Re: "fn has no properties" error in event.js
- Thanks for the reply, Alex. I reorganized my constructor function to
make sure things were defined in order -- now it works fine.
> 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.
> 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.