[rkward-cvs] SF.net SVN: rkward:[2690] trunk/rkward/rkward/plugins/php2js.js

tfry at users.sourceforge.net tfry at users.sourceforge.net
Tue Oct 6 11:48:00 UTC 2009


Revision: 2690
          http://rkward.svn.sourceforge.net/rkward/?rev=2690&view=rev
Author:   tfry
Date:     2009-10-06 11:48:00 +0000 (Tue, 06 Oct 2009)

Log Message:
-----------
array may be lower cased

Modified Paths:
--------------
    trunk/rkward/rkward/plugins/php2js.js

Modified: trunk/rkward/rkward/plugins/php2js.js
===================================================================
--- trunk/rkward/rkward/plugins/php2js.js	2009-10-06 11:35:26 UTC (rev 2689)
+++ trunk/rkward/rkward/plugins/php2js.js	2009-10-06 11:48:00 UTC (rev 2690)
@@ -117,6 +117,10 @@
 			continue;
 		} else if (input.indexOf ("Array", i) == i) {
 			output += "new ";
+		} else if (input.indexOf ("array", i) == i) {
+			output += "new Array";
+			i += 5;
+			continue;
 		} else if (input.indexOf ("global ", i) == i) {
 			i += 7 + eatGlobals (input.substr (i + 7));
 			continue;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list