diff options
Diffstat (limited to 'js/directive/NewsStopPropagation.js')
-rw-r--r-- | js/directive/NewsStopPropagation.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/directive/NewsStopPropagation.js b/js/directive/NewsStopPropagation.js index daa62ae59..48d8ce3c4 100644 --- a/js/directive/NewsStopPropagation.js +++ b/js/directive/NewsStopPropagation.js @@ -7,13 +7,13 @@ * @author Bernhard Posselt <dev@bernhard-posselt.com> * @copyright Bernhard Posselt 2014 */ -app.directive('newsStopPropagation', () => { +app.directive('newsStopPropagation', function () { 'use strict'; return { restrict: 'A', - link: (scope, element) => { - element.bind('click', (e) => { - e.stopPropagation(); + link: function (scope, element) { + element.bind('click', function (event) { + event.stopPropagation(); }); } }; |