summaryrefslogtreecommitdiff
path: root/setText.go
diff options
context:
space:
mode:
Diffstat (limited to 'setText.go')
-rw-r--r--setText.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/setText.go b/setText.go
index 3cd21fb..a4ba556 100644
--- a/setText.go
+++ b/setText.go
@@ -12,9 +12,9 @@ import (
func (n *Node) SetText(text string) *Node {
if ! n.Ready() { return n }
- if n.GetText() == text {
+ if n.String() == text {
// nothing changed
- return n
+ // return n
}
n.value = text
n.changed = true