From cf86dfa9f1a541d7c8b96a101f4f5a060ba1af88 Mon Sep 17 00:00:00 2001 From: knalli Date: Thu, 18 Sep 2014 19:10:56 +0200 Subject: [PATCH] Remove unnecessary function scope --- src/service/translate.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/service/translate.js b/src/service/translate.js index 6c4cc87c8..1660fdf9a 100644 --- a/src/service/translate.js +++ b/src/service/translate.js @@ -1128,9 +1128,7 @@ angular.module('pascalprecht.translate').provider('$translate', ['$STORAGE_KEY', if (fallbackLanguageIndex < $fallbackLanguage.length) { var langKey = $fallbackLanguage[fallbackLanguageIndex]; getFallbackTranslation(langKey, translationId, interpolateParams, Interpolator).then( - function (translation) { - deferred.resolve(translation); - }, + deferred.resolve, function () { // Look in the next fallback language for a translation. // It delays the resolving by passing another promise to resolve.