remove comments after obfuscating strings so things like 'http://example.com' in a string doesn't get mangled. will still have problems with a string like that and no string obfu
git-svn-id: file:///home/svn/framework3/trunk@8702 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
b70b17b42a
commit
506fdb63ff
|
@ -121,9 +121,6 @@ class ObfuscateJS
|
|||
#return @js if (@done)
|
||||
@done = true
|
||||
|
||||
# Remove our comments
|
||||
remove_comments
|
||||
|
||||
update_opts(opts)
|
||||
|
||||
if (@opts['Strings'])
|
||||
|
@ -144,6 +141,10 @@ class ObfuscateJS
|
|||
# buf
|
||||
#}
|
||||
end
|
||||
|
||||
# Remove our comments
|
||||
remove_comments
|
||||
|
||||
# Globally replace symbols
|
||||
replace_symbols(@opts['Symbols']) if @opts['Symbols']
|
||||
|
||||
|
|
Loading…
Reference in New Issue