@devexpress/dx-react-core
Advanced tools
Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2
/** | ||
* Bundle of @devexpress/dx-react-core | ||
* Generated: 2017-05-15 | ||
* Generated: 2017-05-26 | ||
* Version: 1.0.0-alpha.1 | ||
@@ -174,3 +174,3 @@ * License: https://js.devexpress.com/Licensing | ||
function getterMemoize(func, onChange) { | ||
function getterMemoize(func) { | ||
var lastArg = null; | ||
@@ -185,3 +185,2 @@ var lastResult = null; | ||
lastResult = func.apply(undefined, args); | ||
onChange(lastResult); | ||
} | ||
@@ -195,4 +194,2 @@ lastArg = args; | ||
var noop = function noop() {}; | ||
var Getter = function (_React$PureComponent) { | ||
@@ -214,8 +211,5 @@ inherits(Getter, _React$PureComponent); | ||
name = _props.name, | ||
pureComputed = _props.pureComputed, | ||
onChange = _props.onChange; | ||
pureComputed = _props.pureComputed; | ||
var pureComputedMemoized = getterMemoize(pureComputed, function (result) { | ||
return onChange(result); | ||
}); | ||
var pureComputedMemoized = getterMemoize(pureComputed); | ||
@@ -274,3 +268,2 @@ this.plugin = defineProperty({ | ||
Getter.defaultProps = { | ||
onChange: noop, | ||
value: null, | ||
@@ -286,3 +279,2 @@ pureComputed: null, | ||
name: PropTypes.string.isRequired, | ||
onChange: PropTypes.func, | ||
value: PropTypes.any, // eslint-disable-line react/forbid-prop-types | ||
@@ -289,0 +281,0 @@ pureComputed: PropTypes.func, |
/** | ||
* Bundle of @devexpress/dx-react-core | ||
* Generated: 2017-05-15 | ||
* Generated: 2017-05-26 | ||
* Version: 1.0.0-alpha.1 | ||
@@ -179,3 +179,3 @@ * License: https://js.devexpress.com/Licensing | ||
function getterMemoize(func, onChange) { | ||
function getterMemoize(func) { | ||
var lastArg = null; | ||
@@ -190,3 +190,2 @@ var lastResult = null; | ||
lastResult = func.apply(undefined, args); | ||
onChange(lastResult); | ||
} | ||
@@ -200,4 +199,2 @@ lastArg = args; | ||
var noop = function noop() {}; | ||
var Getter = function (_React$PureComponent) { | ||
@@ -219,8 +216,5 @@ inherits(Getter, _React$PureComponent); | ||
name = _props.name, | ||
pureComputed = _props.pureComputed, | ||
onChange = _props.onChange; | ||
pureComputed = _props.pureComputed; | ||
var pureComputedMemoized = getterMemoize(pureComputed, function (result) { | ||
return onChange(result); | ||
}); | ||
var pureComputedMemoized = getterMemoize(pureComputed); | ||
@@ -279,3 +273,2 @@ this.plugin = defineProperty({ | ||
Getter.defaultProps = { | ||
onChange: noop, | ||
value: null, | ||
@@ -291,3 +284,2 @@ pureComputed: null, | ||
name: PropTypes.string.isRequired, | ||
onChange: PropTypes.func, | ||
value: PropTypes.any, // eslint-disable-line react/forbid-prop-types | ||
@@ -294,0 +286,0 @@ pureComputed: PropTypes.func, |
{ | ||
"name": "@devexpress/dx-react-core", | ||
"version": "1.0.0-alpha.1", | ||
"version": "1.0.0-alpha.2", | ||
"description": "Core library for DevExtreme React Components", | ||
@@ -5,0 +5,0 @@ "author": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
106654
1431