Ok, delay is really good. But I''ve got a scope problem with it. If I
call it in an object method:
this.intId1 = this.closeMenu.delay(5,el,true);
this.closeMenu will be executed, but strangely won''t see the other
object methods. For exemple,
closeMenu:function(){
this.otherMethod(); //it returns an error, it seem not to see it
}
If I do this:
this.intId1 = this.closeMenu.delay.curry(5,el,true);
inside this.closeMenu is all ok, but curry returns a Function, so
this.intId1 is no more a number, and I can''t use window.clearTimeout
anymore...
So, I have to ''fix'' delay() or curry(), or I can''t
use them.
Enyone can help me?
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---