rails/prototype-rails — pull request #7 by dvandersluis (2011-12-21 18:57:26+00:00)
Title: Links created with a data-method or data-remote attribute submit via right click

Although `$('link').on('click', function(event) { ... })` only responds to left clicks, `document.on('click', '[selector]', function(event, el) { ... })` responds to right click as well, which has the byproduct of causing remote links or links with a method specified to submit when right clicked on.

---

**NOTE:** I submitted the same patch to [rails/prototype-ujs](https://github.com/rails/prototype-ujs/pull/12), but I'm not sure what the process is to get changes from there to the vendored prototype_ujs.js in here, so I created a pull request for this gem as well.