Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 42a0f23

Browse files
committed
refactor($resource): explititly 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.
1 parent 6da8556 commit 42a0f23

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ngResource/resource.js

Lines changed: 3 additions & 0 deletions
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)