Could someone tell me if this is a javascript thing or a mootools issue

 

When you create a new Class() and then try to call a method on the class
with function.delay() and then try to stop that delay the function still
runs.

 

For example

 

fooBar = new Class({

    popit : function () {

        alert("hello")

        }

    })

fooInt = new fooBar()

fooInt.popit.delay(5000);

clearTimeout(fooInt)

 

Even though the clearTimeout() is called for the delay the function still
runs.

 

Any ideas?

 

Steve

Reply via email to