react-hot-api
Advanced tools
Comparing version 0.2.2 to 0.3.0
@@ -15,14 +15,3 @@ 'use strict'; | ||
return function patchReactClass(NextClass) { | ||
if (!NextClass) { | ||
return NextClass; | ||
} | ||
var nextPrototype = (NextClass.type || NextClass).prototype, | ||
typeHasReactClassPrototype = nextPrototype && typeof nextPrototype.render === 'function', | ||
isReactElement = typeHasReactClassPrototype && NextClass.props; | ||
if (!typeHasReactClassPrototype || isReactElement) { | ||
return NextClass; | ||
} | ||
var nextPrototype = (NextClass.type || NextClass).prototype; | ||
assimilatePrototype(nextPrototype); | ||
@@ -29,0 +18,0 @@ |
{ | ||
"name": "react-hot-api", | ||
"version": "0.2.2", | ||
"version": "0.3.0", | ||
"description": "A generic library implementing hot reload for React components without unmounting or losing their state.", | ||
@@ -5,0 +5,0 @@ "main": "modules/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24267
492