mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Ensure _.partialRight args are applied to __bindData__ in the correct order. [closes #408]
This commit is contained in:
5
dist/lodash.js
vendored
5
dist/lodash.js
vendored
@@ -481,7 +481,8 @@
|
||||
hasOwnProperty = objectProto.hasOwnProperty,
|
||||
push = arrayRef.push,
|
||||
setTimeout = context.setTimeout,
|
||||
splice = arrayRef.splice;
|
||||
splice = arrayRef.splice,
|
||||
unshift = arrayRef.unshift;
|
||||
|
||||
/** Used to set meta data on functions */
|
||||
var defineProperty = (function() {
|
||||
@@ -1436,7 +1437,7 @@
|
||||
}
|
||||
// append partial right arguments
|
||||
if (isPartialRight) {
|
||||
push.apply(bindData[3] || (bindData[3] = []), partialRightArgs);
|
||||
unshift.apply(bindData[3] || (bindData[3] = []), partialRightArgs);
|
||||
}
|
||||
// merge flags
|
||||
bindData[1] |= bitmask;
|
||||
|
||||
Reference in New Issue
Block a user