Mercurial > urweb
comparison lib/js/urweb.js @ 912:771449d8b411
Fix inconsistency in bool URLification between C and JavaScript
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 25 Aug 2009 15:19:00 -0400 |
parents | 7a4b026e45dd |
children | 552c989c1601 |
comparison
equal
deleted
inserted
replaced
911:12c77dc567a2 | 912:771449d8b411 |
---|---|
469 | 469 |
470 function uu(s) { | 470 function uu(s) { |
471 return unescape(s.replace(new RegExp ("\\+", "g"), " ")); | 471 return unescape(s.replace(new RegExp ("\\+", "g"), " ")); |
472 } | 472 } |
473 | 473 |
474 function ub(b) { | |
475 return b ? "1" : "0"; | |
476 } | |
477 | |
474 function uul(getToken, getData) { | 478 function uul(getToken, getData) { |
475 var tok = getToken(); | 479 var tok = getToken(); |
476 if (tok == "Nil") { | 480 if (tok == "Nil") { |
477 return null; | 481 return null; |
478 } else if (tok == "Cons") { | 482 } else if (tok == "Cons") { |