From 1448bab5b38c181869313cbc1bd69de1ff4d63da Mon Sep 17 00:00:00 2001 From: jdalton Date: Sat, 28 Mar 2015 00:25:35 -0700 Subject: [PATCH] Clear `func` in function created by `_.before` without requiring an additional call. [closes #1088] --- lodash.src.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lodash.src.js b/lodash.src.js index f18c1fa8f..2ebce5586 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -7375,7 +7375,8 @@ return function() { if (--n > 0) { result = func.apply(this, arguments); - } else { + } + if (n <= 1) { func = null; } return result;