On Feb 28, 5:19 pm, Nathan Sweet <[email protected]> wrote: > Hey all, > I finally understand that the closure is being passed to the returned > function overloadSetter. The OP does understand prototype inheritance. I > wasn't misunderstanding the inheritance, I was misunderstanding what > function was being passed the arguments and how. Julian, thanks a bunch man, > you were very helpful. I finally get that you could rewrite the function > like this (sort of) > > someFunc.extend(a,b) is equivalent to (again, kind of) > someFunc.extend[the returned function of overloadSetter](a,b), wherein the > context of the returned function of overloadSetter 'self' is the method > 'extend'. > > Sorry if my question was completely unclear. > Thanks again, > Nate >
Hi Nathan That's great. No problem with the unclear question. Often finding the the right question and the right answer are the same thing! I assumed you knew as much as anyone here about inheritance, and I guess I was rehearsing the what the specifications say (not as accurately as Rob) in order to help refine your question. Best Regards Julian -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
