Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ran through jslint and fixed warnings

  • Loading branch information...
commit 500d6684ec571186e67430d4532030ee41b6bba8 1 parent c8a7fe5
Robert Sosinski authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 jquery-rails.js
View
6 jquery-rails.js
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.