summaryrefslogtreecommitdiffstats
path: root/js/directive/NewsBindUnsafeHtml.js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-09-11 03:55:52 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-09-11 03:55:52 +0200
commitea9ebd4826fe9807af5bc17e786b3dc58f163970 (patch)
tree2894b40614ebe977797cea5745b215e2a2851f61 /js/directive/NewsBindUnsafeHtml.js
parent594b92f649d8ed8a705f1af23639463078170d46 (diff)
port to es5 and add es6 shims for object prototypes instead
Diffstat (limited to 'js/directive/NewsBindUnsafeHtml.js')
-rw-r--r--js/directive/NewsBindUnsafeHtml.js6
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));
});
};