Skip to content

Commit

Permalink
music options added to operands
Browse files Browse the repository at this point in the history
  • Loading branch information
menan committed Mar 19, 2013
1 parent e776f83 commit f9e032d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/facebooker2/rails/helpers/javascript.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def fb_connect_async_js(app_id=Facebooker2.app_id,options={},&proc)
cookie = opts[:cookie].nil? ? true : opts[:cookie]
status = opts[:status].nil? ? true : opts[:status]
xfbml = opts[:xfbml].nil? ? true : opts[:xfbml]
music = opts[:music].nil? ? false : opts[:music]
channel_url = opts[:channel_url]
lang = opts[:locale] || 'en_US'
extra_js = capture(&proc) if block_given?
Expand All @@ -29,6 +30,7 @@ def fb_connect_async_js(app_id=Facebooker2.app_id,options={},&proc)
cookie : #{cookie}, // enable cookies to allow the server to access the session
#{"channelUrl : '#{channel_url}', // add channelURL to avoid IE redirect problems" unless channel_url.blank?}
oauth : true,
music : #{music}
xfbml : #{xfbml} // parse XFBML
});
#{extra_js}
Expand Down

0 comments on commit f9e032d

Please sign in to comment.