We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
route.defaults
provider.defaults
options
1 parent 63d31ad commit 34ddd9eCopy full SHA for 34ddd9e
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