It is the same as apply
in JS. In JS, you do
var context = ...;
cb.apply(context, [ ...args...]);
The object passed as the first argument becomes this
within the function scope. More documentation on MDN
. If you don't know JS well, you can read more about JS's this
here: http://unschooled.org/2012/03/understanding-javascript-this/