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

Plain this variable is broken. #3

Closed Danack closed 11 years ago

Danack commented 11 years ago

return json_encode_object($this, $className);

Shouldn't be

return json_encode_object(this. className);

But instead be

return json_encode_object(this, className);

Danack commented 11 years ago

This was fixed previously. See AssigningThis example.