Skip to content

Commit

Permalink
Merge pull request facebook#3638 from devicehubnet/master
Browse files Browse the repository at this point in the history
check if type.prototype is object in instantiateReactComponent
  • Loading branch information
jimfb committed Apr 9, 2015
2 parents 857736d + cdd359b commit 0f0f5aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/instantiateReactComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ assign(
function isInternalComponentType(type) {
return (
typeof type === 'function' &&
typeof type.prototype !== 'undefined' &&
typeof type.prototype.mountComponent === 'function' &&
typeof type.prototype.receiveComponent === 'function'
);
Expand Down

0 comments on commit 0f0f5aa

Please sign in to comment.