re-styling previous commit.

This commit is contained in:
Jeremy Ashkenas
2011-11-14 14:14:30 -05:00
parent a64cc1d979
commit 51b8293cee

View File

@@ -595,9 +595,10 @@
// Returns a function that will only be executed after being called N times.
_.after = function(times, func) {
return times ? function() {
if (times <= 0) return func();
return function() {
if (--times < 1) { return func.apply(this, arguments); }
} : func();
};
};
// Object Functions