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

Commit

Permalink
fix(directive): fix wrong initial translation causing overloading
Browse files Browse the repository at this point in the history
Solves #950
  • Loading branch information
knalli committed Apr 13, 2015
1 parent a13899f commit 657ed8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/directive/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ angular.module('pascalprecht.translate')

// ensure translation will be looked up at least one
if (iElement.text().length) {
observeElementTranslation('');
observeElementTranslation('' + iAttr.translate);
}
updateTranslations();
scope.$on('$destroy', unbind);
Expand Down

0 comments on commit 657ed8a

Please sign in to comment.