You're missing a bind on the each loop in the slide method:
this.headings.each( function(heading, i, el) {
// yada yada
}.bind(this));
On Thursday, September 13, 2012 12:09:07 AM UTC+2, Douglas Machado wrote:
>
> @rasmusfl0e,
>
> Thanks for your reply, however it did not work;
>
> Also, I have tried the code below, but it did not work:
> var Slider; // to define Slider in the global scope
> window.addEvent('domready', function () {
> Slider = new MooFAQ();
> Slider.slide();
> Slider.loadHash();
> });
>
> I don't know whats wrong with my class, but it did not working using
> bind(this) and it is not calling the initialize() method;
>
> I've updated the jsfiddle with your suggestions:
> http://jsfiddle.net/machadoug/LPVkv/2/
>
> Thanks for helping.
>