|
|
|
|
|
by Xavi
5622 days ago
|
|
Yep, that is exactly the solution I would be looking for. I would be blown a way if someone came up with solution that could handle arbitrary function returns. My friend actually wrote an interesting article on the subject. Here's the link if you're interested: http://msdn.microsoft.com/en-US/scriptjunkie/gg575560.aspx |
|
var say = (function() {
})();// e.g. say('Hello')('World')('!!')();
// --> alerts "Hello World !!"