Skip to content

Commit

Permalink
Replace deprecated deferred.error() with fail()
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosantoniodasilva committed Dec 29, 2014
1 parent 9664dac commit 5a59528
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rails.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@
if (handleRemote === false) {
rails.enableElement(link);
} else {
handleRemote.error( function() { rails.enableElement(link); } );
handleRemote.fail( function() { rails.enableElement(link); } );
}
return false;

Expand All @@ -389,7 +389,7 @@
if (handleRemote === false) {
rails.enableFormElement(button);
} else {
handleRemote.error( function() { rails.enableFormElement(button); } );
handleRemote.fail( function() { rails.enableFormElement(button); } );
}
return false;
});
Expand Down

0 comments on commit 5a59528

Please sign in to comment.