lib/ruby2js/converter/ivar.rb in ruby2js-1.1.2 vs lib/ruby2js/converter/ivar.rb in ruby2js-1.1.3

- old
+ new

@@ -2,9 +2,13 @@ class Converter # (ivar :@a) handle :ivar do |var| - var.to_s.sub('@', 'this._') + if self.ivars and self.ivars.include? var + Ruby2JS.convert(self.ivars[var].inspect) + else + var.to_s.sub('@', 'this._') + end end end end