Skip to content
Browse files

Revert "Added jquery event binding namespace 'rails' for easy unbindi…

…ng of all rails jquery magic."

This reverts commit a9a7b20.
  • Loading branch information...
1 parent 8bf2101 commit 8f2780bd243a6486a75aac9cdbe714cf33b99d09 Neeraj Singh committed Nov 1, 2010
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/rails.js
View
12 src/rails.js
@@ -70,7 +70,7 @@ jQuery(function ($) {
var jqueryVersion = $().jquery;
if ( (jqueryVersion === '1.4') || (jqueryVersion === '1.4.1') || (jqueryVersion === '1.4.2')){
- $('a[data-confirm],input[data-confirm]').live('click.rails', function () {
+ $('a[data-confirm],input[data-confirm]').live('click', function () {
var el = $(this);
if (el.triggerAndReturn('confirm')) {
if (!confirm(el.attr('data-confirm'))) {
@@ -79,7 +79,7 @@ jQuery(function ($) {
}
});
} else {
- $('body').delegate('a[data-confirm],input[data-confirm]', 'click.rails', function () {
+ $('body').delegate('a[data-confirm],input[data-confirm]', 'click', function () {
var el = $(this);
if (el.triggerAndReturn('confirm')) {
if (!confirm(el.attr('data-confirm'))) {
@@ -94,17 +94,17 @@ jQuery(function ($) {
/**
* remote handlers
*/
- $('form[data-remote]').live('submit.rails', function (e) {
+ $('form[data-remote]').live('submit', function (e) {
$(this).callRemote();
e.preventDefault();
});
- $('a[data-remote],input[data-remote]').live('click.rails', function (e) {
+ $('a[data-remote],input[data-remote]').live('click', function (e) {
$(this).callRemote();
e.preventDefault();
});
- $('a[data-method]:not([data-remote])').live('click.rails', function (e){
+ $('a[data-method]:not([data-remote])').live('click', function (e){
var link = $(this),
href = link.attr('href'),
method = link.attr('data-method'),
@@ -140,7 +140,7 @@ jQuery(function ($) {
};
$(disable_with_form_remote_selector).live('ajax:before', disable_with_input_function);
- $(disable_with_form_not_remote_selector).live('submit.rails', disable_with_input_function);
+ $(disable_with_form_not_remote_selector).live('submit', disable_with_input_function);
$(disable_with_form_remote_selector).live('ajax:complete', function () {
$(this).find(disable_with_input_selector).each(function () {

0 comments on commit 8f2780b

Please sign in to comment.
Something went wrong with that request. Please try again.