Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
fix(service): add explicit promise rejection handler for $translate.use
Browse files Browse the repository at this point in the history
Relates #1657
  • Loading branch information
knalli committed Feb 6, 2017
1 parent 7c9d2c9 commit f4dc14a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/service/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -1867,6 +1867,7 @@ function $translate($STORAGE_KEY, $windowProvider, $translateSanitizationProvide
}

var deferred = $q.defer();
deferred.promise.then(null, angular.noop); // AJS "Possibly unhandled rejection"

$rootScope.$emit('$translateChangeStart', {language : key});

Expand Down

0 comments on commit f4dc14a

Please sign in to comment.