lib/ember_script.rb in ember_script-0.0.4 vs lib/ember_script.rb in ember_script-0.0.5
- old
+ new
@@ -44,10 +44,10 @@
else
options[:bare] = false
end
bare = options[:bare] ? "--bare" : ""
- Source.context.call("EmberScript.em2js", script, options)
+ Source.context.call("function() { return EmberScript.em2js.apply(EmberScript, arguments); }", script, options)
end
end
class EmberScriptTemplate < ::Tilt::Template
self.default_mime_type = 'application/javascript'