diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-09-16 20:20:23 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-09-16 20:20:23 +0200 |
commit | d9f1aca951fb83d870d8abbcc30244441dd2a442 (patch) | |
tree | 2e502a1e7de92141394563aea9842c4fdc47e146 /js/app/directives | |
parent | 2937a633de8f54d0f5f20f8ced6e8914da40d312 (diff) |
version bump1.603
Diffstat (limited to 'js/app/directives')
-rw-r--r-- | js/app/directives/translate.coffee | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/js/app/directives/translate.coffee b/js/app/directives/translate.coffee index c3e2dfd47..29cb8153f 100644 --- a/js/app/directives/translate.coffee +++ b/js/app/directives/translate.coffee @@ -26,7 +26,6 @@ angular.module('News').directive 'newsTranslate', -> directive = restrict: 'E' link: (scope, element, attributes) -> - $element = $(element) - scope.translations or= scope.translations - scope.translations[attributes.key] = $element.text() - $element.remove() + scope.translations = scope.translations || {} + scope.translations[attributes.key] = element.text() + element.remove() |