summaryrefslogtreecommitdiffstats
path: root/js/app/directives/translate.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'js/app/directives/translate.coffee')
-rw-r--r--js/app/directives/translate.coffee7
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()