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

@@ -4,6 +4,7 @@ import composeArgsRight from './composeArgsRight';
import createCtorWrapper from './createCtorWrapper';
import reorder from './reorder';
import replaceHolders from './replaceHolders';
import root from './root';
/** Used to compose bitmasks for wrapper metadata. */
var BIND_FLAG = 1,
@@ -96,7 +97,8 @@ function createHybridWrapper(func, bitmask, thisArg, partials, holders, partials
if (isAry && ary < args.length) {
args.length = ary;
}
return (this instanceof wrapper ? (Ctor || createCtorWrapper(func)) : func).apply(thisBinding, args);
var fn = (this && this !== root && this instanceof wrapper) ? (Ctor || createCtorWrapper(func)) : func;
return fn.apply(thisBinding, args);
}
return wrapper;
}