@samitouri / QOS-React-2 / commits / cdd359b710

check if is undefined

Teodor Szente committed Apr 9, 2015 at 20:12 UTC cdd359b71020fff5efd09c8e64e3fd468cbed8e5
1 file changed +1 -1
src/core/instantiateReactComponent.js
+1 -1
@@ -40,7 +40,7 @@ assign(
40 function isInternalComponentType(type) {
41 return (
42 typeof type === 'function' &&
43 - typeof type.prototype === 'object' &&
43 + typeof type.prototype !== 'undefined' &&
44 typeof type.prototype.mountComponent === 'function' &&
45 typeof type.prototype.receiveComponent === 'function'
46 );