Skip to content

Commit 96e34e3

Browse files
committed
refactor($resource): explicitly set $resourceProvider.defaults.cancellable to false
Previously, it was just `undefined` and had the same behavior (since we only check for falsy-ness). Just making it explicit, that this property is also available on `defaults` and is "not true" by default. Closes angular#14711
1 parent 618e3f2 commit 96e34e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ngResource/resource.js

+3
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,9 @@ angular.module('ngResource', ['ng']).
485485
// Strip slashes by default
486486
stripTrailingSlashes: true,
487487

488+
// Make non-instance requests cancellable (via `$cancelRequest()`)
489+
cancellable: false,
490+
488491
// Default actions configuration
489492
actions: {
490493
'get': {method: 'GET'},

0 commit comments

Comments
 (0)