summaryrefslogtreecommitdiff
path: root/lib/js/urweb.js
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-04-02 10:57:14 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-04-02 10:57:14 -0400
commitce10b5d904f18c947bbc8cefb119e33cde7b421e (patch)
tree784b0a4ba4735d9e4d33b03468bab70403b0ab13 /lib/js/urweb.js
parent4cd791205f6adfdee194864efa5ba2c791bbab6c (diff)
Don't self-update ctextboxes unnecessarily
Diffstat (limited to 'lib/js/urweb.js')
-rw-r--r--lib/js/urweb.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js
index 4daee66d..f4ed111b 100644
--- a/lib/js/urweb.js
+++ b/lib/js/urweb.js
@@ -88,7 +88,7 @@ function inp(t, s) {
var x = document.createElement(t);
x.value = s.v;
addNode(x);
- s.h = cons(function() { x.value = s.v }, s.h);
+ s.h = cons(function() { if (x.value != s.v) x.value = s.v }, s.h);
x.onkeyup = function() { sv(s, x.value) };
return x;
}