aboutsummaryrefslogtreecommitdiff
path: root/js/components
diff options
context:
space:
mode:
Diffstat (limited to 'js/components')
-rw-r--r--js/components/editable.reel/editable.js3
-rw-r--r--js/components/hintable.reel/hintable.js7
2 files changed, 6 insertions, 4 deletions
diff --git a/js/components/editable.reel/editable.js b/js/components/editable.reel/editable.js
index 6ccb0445..dad93b31 100644
--- a/js/components/editable.reel/editable.js
+++ b/js/components/editable.reel/editable.js
@@ -96,8 +96,7 @@ exports.Editable = Montage.create(Component, {
96 return this._element.textContent; 96 return this._element.textContent;
97 }, 97 },
98 set: function(str) { 98 set: function(str) {
99 //this._element.textContent = str; 99 this._element.textContent = str;
100 this._element.innerText = str;
101 } 100 }
102 }, 101 },
103 102
diff --git a/js/components/hintable.reel/hintable.js b/js/components/hintable.reel/hintable.js
index 79549191..015b3a30 100644
--- a/js/components/hintable.reel/hintable.js
+++ b/js/components/hintable.reel/hintable.js
@@ -146,8 +146,11 @@ exports.Hintable = Montage.create(Editable, {
146 }, 146 },
147 set: function(str) { 147 set: function(str) {
148 var node = this._getFirstTextNode(); 148 var node = this._getFirstTextNode();
149 //node.textContent = str; 149 if (node.textContent !== str) {
150 node.innerText = str; 150 node.textContent = str;
151 }
152
153 //node.innerText = str;
151 } 154 }
152 }, 155 },
153 156