lib/jpbuilder-handler.rb in jpbuilder-0.2.4 vs lib/jpbuilder-handler.rb in jpbuilder-0.2.5

- old
+ new

@@ -14,10 +14,10 @@ #{template.source} end result = result.each_char.to_a.map { |chr| chr.ord > 1000 ? "\\\\u\#{"%4.4x" % chr.ord}" : chr }.join callback = params[:callback] || JPbuilderHandler.default_callback if callback.present? - "\#{callback}(\#{result});" + "/**/\#{callback}(\#{result});" else result end end }