From ce10b5d904f18c947bbc8cefb119e33cde7b421e Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Thu, 2 Apr 2009 10:57:14 -0400 Subject: Don't self-update ctextboxes unnecessarily --- lib/js/urweb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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; } -- cgit v1.2.3