var pre = dojo._toArray(arguments, 2);
var named = dojo.isString(method);
returnfunction(){// arrayify argumentsvar args = dojo._toArray(arguments);
// locate our methodvar f = named ? (scope||dojo.global)[method] : method;
// invoke with collected argsreturn f && f.apply(scope ||this, pre.concat(args)); // mixed}// Function