@samitouri / QOS-React-2 / commits / 8f6bae21fb

check if type.prototype is object

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