Right, I feel like I heard they were addressing that problem in the
newest ecma standard

Thanks for posting your function, I used it to improve mine a bit :)

http://mootools.net/shell/xsjKx/8/



On Mar 25, 5:28 pm, Roman Land <[email protected]> wrote:
> I have asked the same question in the past, it seems that according to ECMA
> script standard, in the case there is no bind parameter with pass the bind
> should be with the window..
>
> I also have a helper method called "justpass":
> Function.implement({
>     justpass : function(args, bind){
>         var self = this;
>         return function(){
>             return self.apply(bind || this, $splat(args ||
> Array.slice(arguments)));
>         };
>     }
>
> });
>
> HTH
> Roman
>
> On Fri, Mar 26, 2010 at 12:52 AM, jacob <[email protected]> wrote:
> >http://mootools.net/shell/xsjKx/4/
>
> > I was trying to figure out a way to pass variables into a function
> > (like pass) but without losing the functions context.
>
> > Is there a better way to do this?
>
> > To unsubscribe from this group, send email to mootools-users+
> > unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> > ME" as the subject.
>
> --
> ---
> "Make everything as simple as possible, but not simpler."
>
> - Albert Einstein

To unsubscribe from this group, send email to 
mootools-users+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to