summaryrefslogtreecommitdiff
path: root/lib/js/urweb.js
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2009-05-30 09:59:10 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2009-05-30 09:59:10 -0400
commit581a2290590268039cacfbe0762b343f710c3116 (patch)
treea464f8a46243a2a77f37e93ab8934b1d7d11f0fc /lib/js/urweb.js
parent62c7b094ecf7e618a2e31658994bf648e1b36819 (diff)
String.length
Diffstat (limited to 'lib/js/urweb.js')
-rw-r--r--lib/js/urweb.js6
1 files changed, 3 insertions, 3 deletions
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);