Mercurial > urweb
diff lib/js/urweb.js @ 1781:25824a0e8bf1
Change propagation of source value to textarea
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Fri, 13 Jul 2012 09:01:01 -0400 |
parents | 22858505bb2d |
children | 5bc4fbf9c0fe |
line wrap: on
line diff
--- a/lib/js/urweb.js Sat Jun 23 10:11:33 2012 -0400 +++ b/lib/js/urweb.js Fri Jul 13 09:01:01 2012 -0400 @@ -937,7 +937,7 @@ function tbx(s) { var x = input(document.createElement("textarea"), s, - function(x) { return function(v) { if (x.innerHTML != v) x.innerHTML = v; }; }); + function(x) { return function(v) { if (x.value != v) x.value = v; }; }); x.innerHTML = s.data; x.onkeyup = x.oninput = x.onchange = x.onpropertychange = function() { sv(s, x.value) };