FIX: sourceMappingURL in IE10

This commit is contained in:
Régis Hanol 2015-05-19 10:33:57 +02:00
parent dd91d5b02f
commit 01ebe9ce69
1 changed files with 3 additions and 3 deletions

View File

@ -5,10 +5,10 @@ class SourceURL < Tilt::Template
end
def evaluate(scope, locals, &block)
code = ''
code << 'eval('
code = ""
code << "eval("
code << data.inspect
code << " + \"\\n//@ sourceURL=/#{scope.logical_path}\""
code << " + \"\\n//@ sourceURL=/'#{scope.logical_path}'\""
code << ");\n"
code
end