lib/ruby2js.rb in ruby2js-1.1.4 vs lib/ruby2js.rb in ruby2js-1.1.5
- old
+ new
@@ -43,9 +43,11 @@
if ruby2js.binding and not ruby2js.ivars
ruby2js.ivars = ruby2js.binding.eval \
'Hash[instance_variables.map {|var| [var, instance_variable_get(var)]}]'
end
+ ruby2js.width = options[:width] if options[:width]
+
if source.include? "\n"
ruby2js.enable_vertical_whitespace
lines = ruby2js.to_js.split("\n")
pre = ''
pending = false