Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0cbee85

Browse files
committed
rename doUpdate => _reactivity
1 parent 3311052 commit 0cbee85

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

‎dist/demo.b94efa84.js‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2600,7 +2600,8 @@ function (_Component) {
26002600
writeable: false,
26012601
value: function value() {
26022602
this._state = _objectSpread({}, this.state);
2603-
this.doUpdate();
2603+
2604+
this._reactivity();
26042605
}
26052606
});
26062607
Object.defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), 'componentDidMount', {
@@ -2613,8 +2614,8 @@ function (_Component) {
26132614
}
26142615

26152616
_createClass(ReactVComponent, [{
2616-
key: "doUpdate",
2617-
value: function doUpdate() {
2617+
key: "_reactivity",
2618+
value: function _reactivity() {
26182619
var _this2 = this;
26192620

26202621
(0, _observer.observe)(this._state);

‎dist/demo.b94efa84.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/base/Component.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default class ReactVComponent extends Component {
1414
writeable: false,
1515
value: function () {
1616
this._state = {...this.state};
17-
this.doUpdate();
17+
this._reactivity();
1818
}
1919
});
2020

@@ -25,7 +25,7 @@ export default class ReactVComponent extends Component {
2525
}
2626
});
2727
}
28-
doUpdate() {
28+
_reactivity() {
2929
observe(this._state);
3030
Object.keys(this.state).forEach(key => {
3131
proxy(this, '_state', key);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /