Skip to content

Commit

Permalink
prefer triple equal over double equal
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeraj Singh committed Apr 18, 2011
1 parent a145639 commit 8fe10cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rails.js
Expand Up @@ -168,7 +168,7 @@

callFormSubmitBindings: function(form) {
var events = form.data('events'), continuePropagation = true;
if (events != undefined && events['submit'] != undefined) {
if (events !== undefined && events['submit'] !== undefined) {
$.each(events['submit'], function(i, obj){
if (typeof obj.handler === 'function') return continuePropagation = obj.handler(obj.data);
});
Expand All @@ -187,7 +187,7 @@
var link = $(this);
if (!rails.allowAction(link)) return rails.stopEverything(e);

if (link.data('remote') != undefined) {
if (link.data('remote') !== undefined) {
rails.handleRemote(link);
return false;
} else if (link.data('method')) {
Expand Down

0 comments on commit 8fe10cc

Please sign in to comment.