tweak lambda evaluator
authorJim Pryor <profjim@jimpryor.net>
Thu, 23 Sep 2010 09:07:43 +0000 (05:07 -0400)
committerJim Pryor <profjim@jimpryor.net>
Thu, 23 Sep 2010 09:07:43 +0000 (05:07 -0400)
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
lambda_evaluator.mdwn

index c0697ab..7a037d5 100644 (file)
@@ -87,7 +87,7 @@ Object.prototype.error = function (message, t) {
             // string = JSON.stringify(expr, ['key', 'name', 'message', 'value', 'arity', 'first', 'second', 'tag', 'variable', 'left', 'right', 'bound', 'body' ], 4);
 //                     string = expr.to_string() + "\n\n~~>\n\n";
                        string = '';
-                       eta = document.getElementById('ETA').value === "on";
+                       eta = document.getElementById('ETA').checked;
                        string = "("+eta+")"+string + reduce(expr, eta, false).to_string();
         } catch (e) {
             string = JSON.stringify(e, ['name', 'message', 'from', 'to', 'key',