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 authored and zpao committed Apr 14, 2015
1 parent 41a9abc commit a0b4ef0
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 a0b4ef0

Please sign in to comment.