Mike Austin's Blog

Friday, April 14, 2006

Coding with multiple languages

Ok, I was commenting my JavaScript today with Ruby # comments, and I was wondering why self.someElement = aValue wasn't working right. This is because 'self' is a property of the current window, and 'this' is the current object, the one I wanted. I swear, I spent about an hour wondering why my app had instancing problems :) It shows that my brain was definitely in Ruby mode.

0 Comments:

Post a Comment

<< Home