@@ -6325,19 +6325,14 @@ var DatBoolean = function (_Component) {
6325
6325
args[_key] = arguments[_key];
6326
6326
}
6327
6327
6328
- return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DatBoolean.__proto__ || Object.getPrototypeOf(DatBoolean)).call.apply(_ref, [this].concat(args))), _this), _this.handleChange = function (event) {
6328
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DatBoolean.__proto__ || Object.getPrototypeOf(DatBoolean)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
6329
+ value: _this.getValue()
6330
+ }, _this.handleChange = function (event) {
6329
6331
_this.setState({ value: event.target.checked }, _this.update);
6330
6332
}, _temp), _possibleConstructorReturn(_this, _ret);
6331
6333
}
6332
6334
6333
6335
_createClass(DatBoolean, [{
6334
- key: 'componentWillMount',
6335
- value: function componentWillMount() {
6336
- this.setState({
6337
- value: this.getValue()
6338
- });
6339
- }
6340
- }, {
6341
6336
key: 'componentWillReceiveProps',
6342
6337
value: function componentWillReceiveProps(nextProps) {
6343
6338
this.setState({
@@ -6520,13 +6515,6 @@ var DatColor = function (_Component) {
6520
6515
}
6521
6516
6522
6517
_createClass(DatColor, [{
6523
- key: 'componentWillMount',
6524
- value: function componentWillMount() {
6525
- this.setState({
6526
- value: this.getValue()
6527
- });
6528
- }
6529
- }, {
6530
6518
key: 'componentWillReceiveProps',
6531
6519
value: function componentWillReceiveProps(nextProps) {
6532
6520
this.setState({
@@ -6791,7 +6779,9 @@ var DatNumber = function (_Component) {
6791
6779
args[_key] = arguments[_key];
6792
6780
}
6793
6781
6794
- return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DatNumber.__proto__ || Object.getPrototypeOf(DatNumber)).call.apply(_ref, [this].concat(args))), _this), _this.handleChange = function (event) {
6782
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DatNumber.__proto__ || Object.getPrototypeOf(DatNumber)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
6783
+ value: _this.getValue()
6784
+ }, _this.handleChange = function (event) {
6795
6785
_this.setState({ value: event.target.value }, _this.update);
6796
6786
}, _this.handleFocus = function () {
6797
6787
document.addEventListener('keydown', _this.handleKeyDown);
@@ -6823,13 +6813,6 @@ var DatNumber = function (_Component) {
6823
6813
}
6824
6814
6825
6815
_createClass(DatNumber, [{
6826
- key: 'componentWillMount',
6827
- value: function componentWillMount() {
6828
- this.setState({
6829
- value: this.getValue()
6830
- });
6831
- }
6832
- }, {
6833
6816
key: 'componentWillReceiveProps',
6834
6817
value: function componentWillReceiveProps(nextProps) {
6835
6818
this.setState({
@@ -7180,13 +7163,6 @@ var DatSelect = function (_Component) {
7180
7163
}
7181
7164
7182
7165
_createClass(DatSelect, [{
7183
- key: 'componentWillMount',
7184
- value: function componentWillMount() {
7185
- this.setState({
7186
- value: this.getValue()
7187
- });
7188
- }
7189
- }, {
7190
7166
key: 'componentWillReceiveProps',
7191
7167
value: function componentWillReceiveProps(nextProps) {
7192
7168
this.setState({
@@ -7320,7 +7296,9 @@ var DatString = function (_Component) {
7320
7296
args[_key] = arguments[_key];
7321
7297
}
7322
7298
7323
- return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DatString.__proto__ || Object.getPrototypeOf(DatString)).call.apply(_ref, [this].concat(args))), _this), _this.handleChange = function (event) {
7299
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = DatString.__proto__ || Object.getPrototypeOf(DatString)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
7300
+ value: _this.getValue()
7301
+ }, _this.handleChange = function (event) {
7324
7302
var value = event.target.value;
7325
7303
7326
7304
_this.setState({ value: value }, function () {
@@ -7342,13 +7320,6 @@ var DatString = function (_Component) {
7342
7320
}
7343
7321
7344
7322
_createClass(DatString, [{
7345
- key: 'componentWillMount',
7346
- value: function componentWillMount() {
7347
- this.setState({
7348
- value: this.getValue()
7349
- });
7350
- }
7351
- }, {
7352
7323
key: 'componentWillReceiveProps',
7353
7324
value: function componentWillReceiveProps(nextProps) {
7354
7325
this.setState({
@@ -8732,7 +8703,9 @@ var Slider = function (_Component) {
8732
8703
args[_key] = arguments[_key];
8733
8704
}
8734
8705
8735
- return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Slider.__proto__ || Object.getPrototypeOf(Slider)).call.apply(_ref, [this].concat(args))), _this), _this.handleMouseDown = function (event) {
8706
+ return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Slider.__proto__ || Object.getPrototypeOf(Slider)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
8707
+ value: (0, _utils.toNumber)(_this.props.value)
8708
+ }, _this.handleMouseDown = function (event) {
8736
8709
_this.update(event.pageX);
8737
8710
8738
8711
window.addEventListener('mousemove', _this.handleMouseMove);
@@ -8753,13 +8726,6 @@ var Slider = function (_Component) {
8753
8726
}
8754
8727
8755
8728
_createClass(Slider, [{
8756
- key: 'componentWillMount',
8757
- value: function componentWillMount() {
8758
- this.setState({
8759
- value: (0, _utils.toNumber)(this.props.value)
8760
- });
8761
- }
8762
- }, {
8763
8729
key: 'componentWillReceiveProps',
8764
8730
value: function componentWillReceiveProps(nextProps) {
8765
8731
this.setState({
0 commit comments