summaryrefslogtreecommitdiff
path: root/button.go
diff options
context:
space:
mode:
Diffstat (limited to 'button.go')
-rw-r--r--button.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/button.go b/button.go
index d4f1b7a..6fd0906 100644
--- a/button.go
+++ b/button.go
@@ -17,7 +17,7 @@ func (n *Node) NewButton(name string, custom func()) *Node {
// deprecate this once andlabs is refactored
func callback(i int) bool {
log(debugError, "callback() for widget id =", i)
- n := Config.rootNode.FindId(i)
+ n := me.rootNode.FindId(i)
log(debugError, "callback() found node =", n)
// running custom here means the button get's clicked twice
if (n.Custom == nil) {