89
rated 0 times
[
94]
[
5]
/ answers: 1 / hits: 29804
/ 11 Years ago, sat, october 12, 2013, 12:00:00
Is it possible to make an object callable by implementing either call
or apply
on it, or in some other way? E.g.:
var obj = {};
obj.call = function (context, arg1, arg2, ...) {
...
};
...
obj (a, b);
More From » javascript