Clear func in function created by _.before without requiring an additional call. [closes #1088]

This commit is contained in:
jdalton
2015-03-28 00:25:35 -07:00
parent 2884f8acb8
commit 1448bab5b3

View File

@@ -7375,7 +7375,8 @@
return function() {
if (--n > 0) {
result = func.apply(this, arguments);
} else {
}
if (n <= 1) {
func = null;
}
return result;