Mercurial > urweb
changeset 686:3b46548f701b
Don't self-update ctextboxes unnecessarily
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 02 Apr 2009 10:57:14 -0400 |
parents | c73c5fe72388 |
children | a3ddf05fb3e3 |
files | lib/js/urweb.js |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/js/urweb.js Thu Apr 02 10:55:00 2009 -0400 +++ b/lib/js/urweb.js Thu Apr 02 10:57:14 2009 -0400 @@ -88,7 +88,7 @@ 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; }