JavaScript apply() method's context could be important

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