Skip to content

Commit

Permalink
Ahhh call not bind
Browse files Browse the repository at this point in the history
  • Loading branch information
jspears committed May 18, 2016
1 parent f8577bb commit bb303d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/injectorFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default function injector(resolvers = new Map()) {
injectedClass.defaultProps[key] = keyIn(key, injectedProps, defaultProps, extraProps);

//Resolver could return a different class.
const nextClass = resolver.bind(Injector, injectedClass, key, propTypeKeys, Clazz);
const nextClass = resolver.call(Injector, injectedClass, key, propTypeKeys, Clazz);

//If a different class was null, return the original class.
return (nextClass == null) ? injectedClass : nextClass;
Expand Down

0 comments on commit bb303d0

Please sign in to comment.