summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-08-30 00:40:17 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-08-30 00:40:17 +0200
commit3dfe287f7c89c7a746b60d69b8dd6c76c58a3157 (patch)
treec2e19859a819038f914c9927318af0be1c79862c
parent5725aa77b7aaba46f798d3e18c37d425c93a892f (diff)
Cleanup
-rw-r--r--go/react/react.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/go/react/react.go b/go/react/react.go
index da14099..3285f49 100644
--- a/go/react/react.go
+++ b/go/react/react.go
@@ -65,7 +65,6 @@ type inputCell struct {
}
func (c *inputCell) SetValue(i int) {
- // TODO trigger call back
if c.value != i {
c.value = i
for cc := range c.cells {
@@ -87,7 +86,7 @@ type compuCell struct {
func (c *compuCell) AddCallback(f func(int)) CallbackHandle {
c.cb[&f] = f
- return &f
+ return &f // guaranteed to be uniq
}
func (c *compuCell) RemoveCallback(h CallbackHandle) {