jammit 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/jammit.gemspec +1 -1
- data/lib/jammit/compressor.rb +1 -1
- data/lib/jammit.rb +1 -1
- metadata +1 -1
data/jammit.gemspec
CHANGED
data/lib/jammit/compressor.rb
CHANGED
@@ -41,7 +41,7 @@ module Jammit
|
|
41
41
|
def initialize
|
42
42
|
@css_compressor = YUI::CssCompressor.new
|
43
43
|
flavor = Jammit.javascript_compressor
|
44
|
-
js_options = DEFAULT_OPTIONS[flavor].merge(Jammit.compressor_options)
|
44
|
+
js_options = (DEFAULT_OPTIONS[flavor] || {}).merge(Jammit.compressor_options)
|
45
45
|
@js_compressor = flavor == :closure ?
|
46
46
|
Closure::Compiler.new(js_options) :
|
47
47
|
YUI::JavaScriptCompressor.new(js_options)
|
data/lib/jammit.rb
CHANGED