Bump to v3.5.0.

This commit is contained in:
jdalton
2015-03-08 18:09:08 -07:00
parent d01a1e4ef3
commit ee1f12c851
29 changed files with 117 additions and 71 deletions

View File

@@ -1,4 +1,5 @@
import createCtorWrapper from './createCtorWrapper';
import root from './root';
/** Used to compose bitmasks for wrapper metadata. */
var BIND_FLAG = 1;
@@ -34,7 +35,8 @@ function createPartialWrapper(func, bitmask, thisArg, partials) {
while (argsLength--) {
args[leftIndex++] = arguments[++argsIndex];
}
return (this instanceof wrapper ? Ctor : func).apply(isBind ? thisArg : this, args);
var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;
return fn.apply(isBind ? thisArg : this, args);
}
return wrapper;
}