summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {