diff options
Diffstat (limited to 'label.go')
| -rw-r--r-- | label.go | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -7,11 +7,10 @@ import ( func (n *Node) NewLabel(text string) *Node { newNode := n.newNode(text, toolkit.Label, nil) - var a toolkit.Action - a.ActionType = toolkit.Add - a.Name = text - a.Text = text - newaction(&a, newNode, n) + n.Name = text + n.Text = text + a := newAction(n, toolkit.Add) + sendAction(a, newNode, n) return newNode } |
