Skip to content
This repository was archived by the owner on Feb 20, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
transpiled
node_modules
*.log
11 changes: 6 additions & 5 deletions src/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ export default function ui(key, opts = {}) {

constructor(props, ctx, queue) {
super(props, ctx, queue);

this.updateUI = this.updateUI.bind(this);
this.resetUI = this.resetUI.bind(this);
// If the key is undefined generate a new random hex key for the
// current component's UI scope.
//
Expand Down Expand Up @@ -208,8 +209,8 @@ export default function ui(key, opts = {}) {
uiVars,
uiPath,

updateUI: ::this.updateUI,
resetUI: ::this.resetUI
updateUI: this.updateUI,
resetUI: this.resetUI
};
}

Expand Down Expand Up @@ -293,8 +294,8 @@ export default function ui(key, opts = {}) {
uiKey={ this.key }
uiPath={ this.uiPath }
ui={ this.mergeUIProps() }
resetUI={ ::this.resetUI }
updateUI={ ::this.updateUI } />
resetUI={ this.resetUI }
updateUI={ this.updateUI } />
);
}
}
Expand Down