File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -582,8 +582,8 @@ angular.module('ngResource', ['ng']).
582
582
if ( action . timeout ) {
583
583
$log . debug ( 'ngResource:\n' +
584
584
' Only numeric values are allowed as `timeout`.\n' +
585
- ' Promises are not supported in $resource, because the same value has to ' +
586
- 'be re- used for multiple requests. If you are looking for a way to cancel ' +
585
+ ' Promises are not supported in $resource, because the same value would ' +
586
+ 'be used for multiple requests. If you are looking for a way to cancel ' +
587
587
'requests, you should use the `cancellable` option.' ) ;
588
588
delete action . timeout ;
589
589
}
Original file line number Diff line number Diff line change @@ -1421,8 +1421,8 @@ describe('cancelling requests', function() {
1421
1421
expect ( httpSpy . calls [ 0 ] . args [ 0 ] . timeout ) . toBeUndefined ( ) ;
1422
1422
expect ( $log . debug ) . toHaveBeenCalledOnceWith ( 'ngResource:\n' +
1423
1423
' Only numeric values are allowed as `timeout`.\n' +
1424
- ' Promises are not supported in $resource, because the same value has to ' +
1425
- 'be re- used for multiple requests. If you are looking for a way to cancel ' +
1424
+ ' Promises are not supported in $resource, because the same value would ' +
1425
+ 'be used for multiple requests. If you are looking for a way to cancel ' +
1426
1426
'requests, you should use the `cancellable` option.' ) ;
1427
1427
} )
1428
1428
) ;
You can’t perform that action at this time.
0 commit comments