Yes, you can, and frequently you'll want to.  Matt's example is quite
thorough, but it boils down to:  bind() returns a function that, when
called, will call the original function with the specified value for
'this'.  Since bind() returns a function, you can of course use that
(new) function's defer() method to defer execution of it.  So to
combine them, first bind(), then defer().

var thingy = new Thingy();
thingy.doSomething.bind(thingy).defer();

HTH,
--
T.J. Crowder
tj / crowder software / com

On Nov 12, 8:11 pm, "Miguel Beltran R." <[EMAIL PROTECTED]> wrote:
> Checkinghttp://proto-scripty.wikidot.com/prototype:how-to-using-unobtrusive-j...http://proto-scripty.wikidot.com/prototype:how-to-hooking-eventsnot
>  say if
> is possible combine bind and defer.
>
> --
> ________________________________________
> Lo bueno de vivir un dia mas
> es saber que nos queda un dia menos de vida
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to