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

Commit

Permalink
fix(instant): fix possible npe in case of filters with undefineds
Browse files Browse the repository at this point in the history
solves #368
  • Loading branch information
knalli committed Feb 16, 2014
1 parent cafe9d2 commit 61a9490
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/service/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -1445,6 +1445,11 @@ angular.module('pascalprecht.translate').provider('$translate', ['$STORAGE_KEY',
* @return {string} translation
*/
$translate.instant = function (translationId, interpolateParams, interpolationId) {

if (typeof translationId === 'undefined' || translationId === '') {
return translationId;
}

translationId = translationId.trim();

var result, possibleLangKeys = [];
Expand Down

0 comments on commit 61a9490

Please sign in to comment.