Skip to content

Commit cdd2d52

Browse files
committed
Not a 'real' PR, but a demo for angular#13108
1 parent 469b14a commit cdd2d52

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/ng/http.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,8 @@ function $HttpProvider() {
12691269
}
12701270

12711271
if (useApplyAsync) {
1272-
$rootScope.$applyAsync(resolveHttpPromise);
1272+
// $rootScope.$applyAsync(resolveHttpPromise);
1273+
resolveHttpPromise();
12731274
} else {
12741275
resolveHttpPromise();
12751276
if (!$rootScope.$$phase) $rootScope.$apply();

test/ng/httpSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1928,7 +1928,7 @@ describe('$http with $applyAsync', function() {
19281928
$rootScope.$digest();
19291929

19301930
$httpBackend.flush(null, false);
1931-
expect($rootScope.$applyAsync).toHaveBeenCalledOnce();
1931+
// expect($rootScope.$applyAsync).toHaveBeenCalledOnce();
19321932
expect(handler).not.toHaveBeenCalled();
19331933

19341934
$browser.defer.flush();

0 commit comments

Comments
 (0)