We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
route.defaults
provider.defaults
options
1 parent 7e7b515 commit 024bc1eCopy full SHA for 024bc1e
src/ngResource/resource.js
@@ -676,9 +676,8 @@ angular.module('ngResource', ['ng']).
676
forEach(actions, function(action, name) {
677
var hasBody = /^(POST|PUT|PATCH)$/i.test(action.method);
678
var numericTimeout = action.timeout;
679
- var cancellable = isDefined(action.cancellable) ? action.cancellable :
680
- (options && isDefined(options.cancellable)) ? options.cancellable :
681
- provider.defaults.cancellable;
+ var cancellable = isDefined(action.cancellable) ?
+ action.cancellable : route.defaults.cancellable;
682
683
if (numericTimeout && !isNumber(numericTimeout)) {
684
$log.debug('ngResource:\n' +
0 commit comments