Skip to content

Commit 57f4848

Browse files
committed
Small optimization
`method` extracted from `data` at 357 does not change over function
1 parent c1fcef5 commit 57f4848

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)