From 296f2c2ad36d2ff3fc4c385da3e56690de6d6c03 Mon Sep 17 00:00:00 2001 From: Quin Hoxie Date: Thu, 28 Jan 2010 01:48:23 -0800 Subject: [PATCH] Fixing up semicolons in jQuery and Prototype drivers. --- .../templates/public/javascripts/jquery.rails.js | 8 ++++---- .../public/javascripts/prototype.rails.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/railties/lib/generators/rails/app/templates/public/javascripts/jquery.rails.js b/railties/lib/generators/rails/app/templates/public/javascripts/jquery.rails.js index 09ae5bd..be2a520 100644 --- a/railties/lib/generators/rails/app/templates/public/javascripts/jquery.rails.js +++ b/railties/lib/generators/rails/app/templates/public/javascripts/jquery.rails.js @@ -62,7 +62,7 @@ jQuery(function ($) { data: data, type: method.toUpperCase(), beforeSend: function (xhr) { - xhr.setRequestHeader("Accept", "text/javascript") + xhr.setRequestHeader("Accept", "text/javascript"); el.trigger('rails:after', xhr); el.trigger('rails:loading', xhr); }, @@ -101,7 +101,7 @@ jQuery(function ($) { } e.preventDefault(); } - } + }; /** * observe_form, and observe_field @@ -123,7 +123,7 @@ jQuery(function ($) { $(e).trigger('rails:observe'); rails.remote.call(el, event); } - } + }; }(observed, frequency, value, e); setInterval(observe, frequency * 1000); @@ -154,7 +154,7 @@ jQuery(function ($) { event.target = e; rails.remote.call(el, event); - } + }; }(e, el), frequency * 1000); }); diff --git a/railties/lib/generators/rails/app/templates/public/javascripts/prototype.rails.js b/railties/lib/generators/rails/app/templates/public/javascripts/prototype.rails.js index aaed677..e4bc82a 100644 --- a/railties/lib/generators/rails/app/templates/public/javascripts/prototype.rails.js +++ b/railties/lib/generators/rails/app/templates/public/javascripts/prototype.rails.js @@ -220,8 +220,8 @@ Event.observe(document, 'dom:loaded', function() { }); Event.observe(document, 'rails:popup', function(e){ - var el = getEventProperty(e, 'element'); - var url = el.readAttribute('href') || el.readAttribute('data-url'); + var el = getEventProperty(e, 'element'), + url = el.readAttribute('href') || el.readAttribute('data-url'); if(el.readAttribute('data-popup') === true){ window.open(url); -- 1.6.3.3