From d9f1aca951fb83d870d8abbcc30244441dd2a442 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Mon, 16 Sep 2013 20:20:23 +0200 Subject: version bump --- js/app/directives/translate.coffee | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'js/app/directives/translate.coffee') 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() -- cgit v1.2.3