From cdd359b71020fff5efd09c8e64e3fd468cbed8e5 Mon Sep 17 00:00:00 2001 From: Teodor Szente Date: Thu, 9 Apr 2015 20:12:22 +0300 Subject: [PATCH] check if is undefined --- src/core/instantiateReactComponent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/instantiateReactComponent.js b/src/core/instantiateReactComponent.js index e15a889944..1348dbaf90 100644 --- a/src/core/instantiateReactComponent.js +++ b/src/core/instantiateReactComponent.js @@ -40,7 +40,7 @@ assign( function isInternalComponentType(type) { return ( typeof type === 'function' && - typeof type.prototype === 'object' && + typeof type.prototype !== 'undefined' && typeof type.prototype.mountComponent === 'function' && typeof type.prototype.receiveComponent === 'function' );