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

Commit 929ec6b

Browse files
isyunNarretz
authored andcommitted
style($http): fix typo in useLegacyPromise var
Closes #12515
1 parent 39ff333 commit 929ec6b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ng/http.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ function $HttpProvider() {
336336
return useApplyAsync;
337337
};
338338

339-
var useLegacyPromse = true;
339+
var useLegacyPromise = true;
340340
/**
341341
* @ngdoc method
342342
* @name $httpProvider#useLegacyPromiseExtensions
@@ -354,10 +354,10 @@ function $HttpProvider() {
354354
**/
355355
this.useLegacyPromiseExtensions = function(value) {
356356
if (isDefined(value)) {
357-
useLegacyPromse = !!value;
357+
useLegacyPromise = !!value;
358358
return this;
359359
}
360-
return useLegacyPromse;
360+
return useLegacyPromise;
361361
};
362362

363363
/**
@@ -979,7 +979,7 @@ function $HttpProvider() {
979979
promise = promise.then(thenFn, rejectFn);
980980
}
981981

982-
if (useLegacyPromse) {
982+
if (useLegacyPromise) {
983983
promise.success = function(fn) {
984984
assertArgFn(fn, 'fn');
985985

0 commit comments

Comments
 (0)