Skip to content

Commit 5a59528

Browse files
Replace deprecated deferred.error() with fail()
Ported from rails/jquery-rails#184.
1 parent 9664dac commit 5a59528

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rails.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@
367367
if (handleRemote === false) {
368368
rails.enableElement(link);
369369
} else {
370-
handleRemote.error( function() { rails.enableElement(link); } );
370+
handleRemote.fail( function() { rails.enableElement(link); } );
371371
}
372372
return false;
373373

@@ -389,7 +389,7 @@
389389
if (handleRemote === false) {
390390
rails.enableFormElement(button);
391391
} else {
392-
handleRemote.error( function() { rails.enableFormElement(button); } );
392+
handleRemote.fail( function() { rails.enableFormElement(button); } );
393393
}
394394
return false;
395395
});

0 commit comments

Comments
 (0)