From 545e614c04b944c34befbc5dfb58836ed9cb0cf1 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Fri, 26 Dec 2014 21:07:32 -0600 Subject: [PATCH] Cleanup `isBindable`. --- lodash.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lodash.js b/lodash.js index b686d5572..f888ac31a 100644 --- a/lodash.js +++ b/lodash.js @@ -3580,11 +3580,9 @@ * @returns {boolean} Returns `true` if `func` is eligible, else `false`. */ function isBindable(func) { - var support = lodash.support; - if (support.funcNames) { - var result = !func.name; - } - result = result || !support.funcDecomp; + var support = lodash.support, + result = !(support.funcNames ? func.name : support.funcDecomp); + if (!result) { var source = fnToString.call(func); if (!support.funcNames) {