<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,7 +2,7 @@ module Facebooker
   module Rails
     module Helpers
       module FbConnect
-        
+
         def fb_connect_javascript_tag(options = {})
           # accept both Rails and Facebook locale formatting, i.e. &quot;en-US&quot; and &quot;en_US&quot;.
           lang = &quot;/#{options[:lang].to_s.gsub('-', '_')}&quot; if options[:lang]
@@ -13,9 +13,9 @@ module Facebooker
             &quot;&lt;script src=\&quot;http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php#{lang}\&quot; type=\&quot;text/javascript\&quot;&gt;&lt;/script&gt;&quot;
           end
         end
-        
-        # 
-        # For information on the :app_settings argument see http://wiki.developers.facebook.com/index.php/JS_API_M_FB.Facebook.Init_2 
+
+        #
+        # For information on the :app_settings argument see http://wiki.developers.facebook.com/index.php/JS_API_M_FB.Facebook.Init_2
         # While it would be nice to treat :app_settings as a hash, some of the arguments do different things if they are a string vs a javascript function
         # and Rails' Hash#to_json always quotes strings so there is no way to indicate when the value should be a javascript function.
         # For this reason :app_settings needs to be a string that is valid JSON (including the {}'s).
@@ -41,7 +41,7 @@ module Facebooker
           unless required_features.blank?
              init_string = &lt;&lt;-FBML
              #{case options[:js]
-               when :jquery then &quot;$(document).ready(&quot;
+               when :jquery then &quot;jQuery(document).ready(&quot;
                when :dojo then &quot;dojo.addOnLoad(&quot;
                else &quot;Element.observe(window,'load',&quot;
                end} function() {
@@ -64,9 +64,9 @@ module Facebooker
             javascript_tag init_string
           end
         end
-  
+
         # Render an &lt;fb:login-button&gt; element
-        # 
+        #
         # ==== Examples
         #
         # &lt;%= fb_login_button%&gt;
@@ -97,25 +97,25 @@ module Facebooker
           end
           content_tag(&quot;fb:login-button&quot;,nil,options.merge(:onlogin=&gt;js))
         end
-        
+
         def fb_unconnected_friends_count
           content_tag &quot;fb:unconnected-friends-count&quot;,nil
         end
-        
+
         def fb_logout_link(text,url,*args)
           js = update_page do |page|
             page.call &quot;FB.Connect.logoutAndRedirect&quot;,url
           end
           link_to_function text, js, *args
         end
-        
+
         def fb_user_action(action, user_message = nil, prompt = &quot;&quot;, callback = nil)
           defaulted_callback = callback || &quot;null&quot;
           update_page do |page|
             page.call(&quot;FB.Connect.showFeedDialog&quot;,action.template_id,action.data,action.target_ids,action.body_general,nil,page.literal(&quot;FB.RequireConnect.promptConnect&quot;),page.literal(defaulted_callback),prompt,user_message.nil? ? nil : {:value=&gt;user_message})
           end
         end
-        
+
       end
     end
   end</diff>
      <filename>lib/facebooker/rails/helpers/fb_connect.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e4ebee3d71486fdda5c51b9bba07f2582f3c7f1e</id>
    </parent>
  </parents>
  <author>
    <name>Andr&#233;s Mej&#237;a-Posada</name>
    <email>andmej@gmail.com</email>
  </author>
  <url>http://github.com/mmangino/facebooker/commit/51b4da9ef4cef831965db1dd14e7308a55dda0bd</url>
  <id>51b4da9ef4cef831965db1dd14e7308a55dda0bd</id>
  <committed-date>2009-11-06T07:34:09-08:00</committed-date>
  <authored-date>2009-10-02T13:13:34-07:00</authored-date>
  <message>Using $ function for jQuery is not always safe, as it might be used by another library. It's better to just use jQuery function.</message>
  <tree>119507d25f0ab64cc8220d64f55782f1a7709929</tree>
  <committer>
    <name>Mike Mangino</name>
    <email>mmangino@elevatedrails.com</email>
  </committer>
</commit>
