Quote:
Originally Posted by Stefan
You mean instead of doing this?
PHP Code:
temp.func = function (temp.a, temp.b) {
return temp.a + temp.b;
};
foobar(temp.func);
|
Yes.
In a script where I created 40 to 50 different closures it was getting irritating to create a junk variable like that.