Skip to content

Commit

Permalink
renamed rails.index() to rails.applyEvents().
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinvaldek committed May 19, 2010
1 parent 87afe33 commit 708650c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/rails.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ window.addEvent('domready', function() {
param: rails.getCsrf('param')
};

rails.index();
rails.applyEvents();
});

(function($) {

window.rails = {
index: function() {
applyEvents: function() {
$$('form[data-remote="true"]').addEvent('submit', rails.handleRemote);
$$('a[data-remote="true"], input[data-remote="true"]').addEvent('click', rails.handleRemote);
$$('a[data-method][data-remote!=true]').addEvent('click', function(e) {
Expand Down

0 comments on commit 708650c

Please sign in to comment.