Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.
oatkiller edited this page Sep 13, 2010 · 1 revision

invoke takes an fn, and calls it. any extra params you pass invoke will be passed into the fn it invokes.

(function () {
var my_fn = function (a,b) {
	return a + b;
};

// returns 7, the same as my_fn(3,4);
o.invoke(my_fn,3,4));
})();
Clone this wiki locally