Skip to content

Commit

Permalink
refactor: compress _hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
wssgcg1213 committed Sep 17, 2019
1 parent 97bcd86 commit 2640e4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rax/src/vdom/reactive.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class ReactiveComponent extends Component {
this._hookID = 0;
// Number of rerenders
this.__reRenders = 0;
this._hooks = {};
this.__hooks = {};
// Handles store
this.didMount = [];
this.didUpdate = [];
Expand Down Expand Up @@ -55,7 +55,7 @@ export default class ReactiveComponent extends Component {
}

getHooks() {
return this._hooks;
return this.__hooks;
}

getHookID() {
Expand Down

0 comments on commit 2640e4a

Please sign in to comment.