Style fix

Sun, 04 Apr 2010 21:08:23 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 04 Apr 2010 21:08:23 +0100
changeset 1
f32a9c1be7c6
parent 0
2fcdf7f16d71
child 2
253863ece36f

Style fix

lvm.js file | annotate | diff | comparison | revisions
--- a/lvm.js	Sun Apr 04 21:02:16 2010 +0100
+++ b/lvm.js	Sun Apr 04 21:08:23 2010 +0100
@@ -47,12 +47,10 @@
 
 var print;
 if(typeof(document) == "object")
-	print = function (a) { document.write(a+"<br/>") };
+	print = function (a) { document.write(a+"<br/>") }; // Browser
 else
-{
-	// Assume running under Nodejs
-	print = require("sys").puts;
-}
+	print = require("sys").puts; // Nodejs
+
 default_environment.setIndex(LValueFromString("print"), LValueFromFunction(print));
 
 function LFunction()

mercurial