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

fix typo useLegacyPromise #12515

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/ng/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ function $HttpProvider() {
return useApplyAsync;
};

var useLegacyPromse = true;
var useLegacyPromise = true;
/**
* @ngdoc method
* @name $httpProvider#useLegacyPromiseExtensions
Expand All @@ -354,10 +354,10 @@ function $HttpProvider() {
**/
this.useLegacyPromiseExtensions = function(value) {
if (isDefined(value)) {
useLegacyPromse = !!value;
useLegacyPromise = !!value;
return this;
}
return useLegacyPromse;
return useLegacyPromise;
};

/**
Expand Down Expand Up @@ -979,7 +979,7 @@ function $HttpProvider() {
promise = promise.then(thenFn, rejectFn);
}

if (useLegacyPromse) {
if (useLegacyPromise) {
promise.success = function(fn) {
assertArgFn(fn, 'fn');

Expand Down