JavaScript apply() method's context could be important

Posted . Visible to the public.

The apply() method takes two arguments, the context to run the method as, and an array of arguments to pass to the method. If using this does not give you the results you need, try passing the object chain above the method you are calling.

namespaced.object.method.apply(namespaced.object, [arguments]);

Jonathan Knapp
Posted by Jonathan Knapp to Knowledge is Power! (2012-03-30 02:56)