mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Make _#bind return non-wrapped values and cleanup a _.template unit test.
Former-commit-id: 351e4ae8b346a69a795c6d2bfe6a55b306515af6
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user