diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-04-02 10:57:14 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-04-02 10:57:14 -0400 |
commit | 6d5d1a66b3d72515ea14167be005a9a3faf19b0e (patch) | |
tree | 784b0a4ba4735d9e4d33b03468bab70403b0ab13 /lib/js/urweb.js | |
parent | 16bdc7eb6654d587170f8b7867d6a553b8187198 (diff) |
Don't self-update ctextboxes unnecessarily
Diffstat (limited to 'lib/js/urweb.js')
-rw-r--r-- | lib/js/urweb.js | 2 |
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; } |