From 94258feb093422dc99567b74a901815713bc8cea Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 2 Dec 2012 21:19:34 -0800 Subject: [PATCH] Make `_#bind` return non-wrapped values and cleanup a `_.template` unit test. Former-commit-id: 351e4ae8b346a69a795c6d2bfe6a55b306515af6 --- lodash.js | 2 +- test/test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lodash.js b/lodash.js index 348184c9b..7c7fd9137 100644 --- a/lodash.js +++ b/lodash.js @@ -4309,7 +4309,7 @@ // add all methods that return unwrapped values forEach(filter(functions(lodash), function(methodName) { - return /^(?:contains|every|find|has|is[A-Z].+|reduce.*|some)$/.test(methodName); + return /^(?:bind|contains|every|find|has|is[A-Z].+|reduce.*|some)$/.test(methodName); }), function(methodName) { var func = lodash[methodName]; diff --git a/test/test.js b/test/test.js index d752f1224..20fc4fa7d 100644 --- a/test/test.js +++ b/test/test.js @@ -1641,7 +1641,7 @@ } catch(e) { var source = e.source; } - ok((source + '').indexOf('__p') > -1); + ok(/__p/.test(source)); }); test('should work with complex "interpolate" delimiters', function() {