app/models/swf_fu/generator.rb in swf_fu-2.0.0 vs app/models/swf_fu/generator.rb in swf_fu-2.0.1

- old
+ new

@@ -102,11 +102,11 @@ def dynamic @options[:html_options] = @options[:html_options].merge(:id => @options[:id]) @options[:parameters] = @options[:parameters].dup # don't modify the original parameters args = convert_to_escaped_arguments(@source, - *@options.values_at(:div_id,:width,:height,:flash_version).map(&:to_s), - *@options.values_at(:auto_install,:flashvars,:parameters,:html_options) + *(@options.values_at(:div_id,:width,:height,:flash_version).map(&:to_s) + + @options.values_at(:auto_install,:flashvars,:parameters,:html_options)) ) preambule = @options[:switch_off_auto_hide_show] ? "swfobject.switchOffAutoHideShow();" : "" r = @view.javascript_tag(preambule + "swfobject.embedSWF(#{args})") r << @view.content_tag("div", @options[:alt].html_safe, :id => @options[:div_id]) \ No newline at end of file