Skip to content

Commit dca8042

Browse files
committed
Merge pull request #393 from KODerFunk/patch-1
Small optimization
2 parents c1fcef5 + 57f4848 commit dca8042

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rails.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@
371371
}
372372
return false;
373373

374-
} else if (link.data('method')) {
374+
} else if (method) {
375375
rails.handleMethod(link);
376376
return false;
377377
}

0 commit comments

Comments
 (0)