> I can't really make sense of what happens when the first
> argument is a string. The documentation says
> "apply(object, args) - apply() is a method of a function
> which calls the function as though it is a method of the
> object." So I don't really understand what's happening
> when we pass in a string like this as the first argument.

Wow, if you can't set the context to a string, then that's pretty
silly. Can anyone else verify this? The simple case  would be:

function test(){
  alert("Should be 'foo': " this);
}

test.apply( "foo", [] );

--John

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to