summaryrefslogtreecommitdiffstats
path: root/js/directive/NewsStopPropagation.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/NewsStopPropagation.js
parent594b92f649d8ed8a705f1af23639463078170d46 (diff)
port to es5 and add es6 shims for object prototypes instead
Diffstat (limited to 'js/directive/NewsStopPropagation.js')
-rw-r--r--js/directive/NewsStopPropagation.js8
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();
});
}
};