mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 00:27:50 +00:00
Issue #79. Correctly setting 'this' in '_.wrap'
This commit is contained in:
@@ -469,7 +469,7 @@
|
||||
_.wrap = function(func, wrapper) {
|
||||
return function() {
|
||||
var args = [func].concat(slice.call(arguments));
|
||||
return wrapper.apply(wrapper, args);
|
||||
return wrapper.apply(this, args);
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user