Danack / PHP-to-Javascript

A tool for converting simple PHP objects/code to Javascript, so that code for manipulating objects can be used both server-side and client-side.
Other
104 stars 32 forks source link

Need to add var for first usage of variable. #4

Closed Danack closed 11 years ago

Danack commented 11 years ago

Because otherwise scoping is broken.

testVar = 1;

function testFunction(){ testVar = 2; }

testVar == 2 is true.

Danack commented 11 years ago

Fixed in latest version.