From 0ee7bc2859f77d610ef4a8edd2acce8e5e0fe58c Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sat, 30 May 2009 09:59:10 -0400 Subject: String.length --- lib/js/urweb.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/js/urweb.js') diff --git a/lib/js/urweb.js b/lib/js/urweb.js index 40b170c4..db3c934c 100644 --- a/lib/js/urweb.js +++ b/lib/js/urweb.js @@ -237,7 +237,6 @@ function setHTML(html) { x.innerHTML = html; addNode(x); runScripts(x); - alert("HTML:\n" + html); } var thisScript = null; @@ -351,8 +350,9 @@ function eh(x) { function ts(x) { return x.toString() } function bs(b) { return (b ? "True" : "False") } -function sub(x, i) { return x[i]; } -function suf(x, i) { return x.substring(i); } +function sub(s, i) { return s[i]; } +function suf(s, i) { return s.substring(i); } +function slen(s) { return s.length; } function pi(s) { var r = parseInt(s); -- cgit v1.2.3