Yes, it looks pass does the same thing, missed this one... thanks
On Dec 1, 8:27 am, אריה גלזר <[email protected]> wrote: > On Wed, Dec 1, 2010 at 9:27 AM, אריה גלזר <[email protected]> wrote: > > isn't this whay#pass is for? > >http://mootools.net/docs/core/Types/Function#Function:pass > > typos... what Function#pass is for > > > > > > > > > > > > > On Wed, Dec 1, 2010 at 12:55 AM, doubleTap <[email protected]> wrote: > > >> I have a function in a class like > > >> myfunc:function() { some fun statements; } > > >> Then I use it as a call back in an ajax call like > > >> new Request({url:opts.uri, onSuccess:this.myfunc.bind.(this, > >> {'bob':'sally'}) }).send(); > > >> Now in my case I am running it all works fine except for the argument > >> I am passing in the bind. My essential question is: How do I bind > >> arguments to a function in a way that allows for additional arguments > >> to be passed to it when called? > > >> In this case the call would be receiving the server response on > >> success of the ajax request. I know I have done it before but I think > >> I lost that part of my brain to mardi gras last year. > > > -- > > Arieh Glazer > > אריה גלזר > > 052-5348-561 > > 5561 > > -- > Arieh Glazer > אריה גלזר > 052-5348-561 > 5561
