On Aug 20, 9:17 pm, Stephan Beal <sgb...@googlemail.com> wrote: > that apply() will handle that special case. Also be aware that apply > takes a list of args, like foo.apply(this,arg1,arg2,arg3), whereas call > () takes the args as a single array: foo.call(this,[arg1,arg2,arg3]).
Sorry, that's exactly backwards: apply() takes an array and call() takes a list. See: http://devlicio.us/blogs/sergio_pereira/archive/2009/02/09/javascript-5-ways-to-call-a-function.aspx