Skip to content

Commit

Permalink
Fix bug from klochner
Browse files Browse the repository at this point in the history
  • Loading branch information
mmangino committed Jan 11, 2011
1 parent f17b5fa commit 75e68b5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/facebooker2/rails/helpers/javascript.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ def fb_connect_async_js(app_id=Facebooker2.app_id,options={},&proc)
</script>
JAVASCRIPT
escaped_js = fb_html_safe(js)
block_given? ? concat(escaped_js) : escaped_js
if block_given?
concat(escaped_js)
#return the empty string, since concat returns the buffer and we don't want double output
# from klochner
""
else
escaped_js
end
end
end
Expand Down

0 comments on commit 75e68b5

Please sign in to comment.