Make _#bind return non-wrapped values and cleanup a _.template unit test.

Former-commit-id: 351e4ae8b346a69a795c6d2bfe6a55b306515af6
This commit is contained in:
John-David Dalton
2012-12-02 21:19:34 -08:00
parent 8b0f033a78
commit 94258feb09
2 changed files with 2 additions and 2 deletions

View File

@@ -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];

View File

@@ -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() {