Permalink
Browse files

ran through jslint and fixed warnings

  • Loading branch information...
1 parent c8a7fe5 commit 500d6684ec571186e67430d4532030ee41b6bba8 Robert Sosinski committed Jan 31, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 jquery-rails.js
View
@@ -27,9 +27,9 @@
*/
(function($) {
// ensure all ajax requests are of js format
- jQuery.ajaxSetup({
+ $.ajaxSetup({
beforeSend: function (xhr) {
- xhr.setRequestHeader("Accept", "text/javascript")
+ xhr.setRequestHeader("Accept", "text/javascript");
}
});
@@ -43,7 +43,7 @@
if (!/^(get|post)$/i.test(settings.type)) {
settings.data = settings.data || "";
- if (typeof settings.data != "string") {
+ if (typeof settings.data !== "string") {
settings.data = $.param(settings.data);
}

0 comments on commit 500d668

Please sign in to comment.