diff options
Diffstat (limited to 'js/directive/NewsBindUnsafeHtml.js')
-rw-r--r-- | js/directive/NewsBindUnsafeHtml.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/directive/NewsBindUnsafeHtml.js b/js/directive/NewsBindUnsafeHtml.js index 7c839d156..5d8cadf85 100644 --- a/js/directive/NewsBindUnsafeHtml.js +++ b/js/directive/NewsBindUnsafeHtml.js @@ -7,11 +7,11 @@ * @author Bernhard Posselt <dev@bernhard-posselt.com> * @copyright Bernhard Posselt 2014 */ -app.directive('newsBindHtmlUnsafe', () => { +app.directive('newsBindHtmlUnsafe', function () { 'use strict'; - return (scope, elem, attr) => { - scope.$watch(attr.newsBindHtmlUnsafe, () => { + return function (scope, elem, attr) { + scope.$watch(attr.newsBindHtmlUnsafe, function () { elem.html(scope.$eval(attr.newsBindHtmlUnsafe)); }); }; |