Ensure _.partialRight args are applied to __bindData__ in the correct order. [closes #408]

This commit is contained in:
John-David Dalton
2013-11-29 07:06:13 -06:00
parent 7712765c3a
commit 34cf8fc43c
6 changed files with 97 additions and 93 deletions

View File

@@ -523,7 +523,8 @@
push = arrayRef.push,
propertyIsEnumerable = objectProto.propertyIsEnumerable,
setTimeout = context.setTimeout,
splice = arrayRef.splice;
splice = arrayRef.splice,
unshift = arrayRef.unshift;
/** Used to set meta data on functions */
var defineProperty = (function() {
@@ -1712,7 +1713,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;