diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-11 03:55:52 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-09-11 03:55:52 +0200 |
commit | ea9ebd4826fe9807af5bc17e786b3dc58f163970 (patch) | |
tree | 2894b40614ebe977797cea5745b215e2a2851f61 /js/directive/NewsDraggable.js | |
parent | 594b92f649d8ed8a705f1af23639463078170d46 (diff) |
port to es5 and add es6 shims for object prototypes instead
Diffstat (limited to 'js/directive/NewsDraggable.js')
-rw-r--r-- | js/directive/NewsDraggable.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/directive/NewsDraggable.js b/js/directive/NewsDraggable.js index 76360ecb7..0bd81a78c 100644 --- a/js/directive/NewsDraggable.js +++ b/js/directive/NewsDraggable.js @@ -7,11 +7,11 @@ * @author Bernhard Posselt <dev@bernhard-posselt.com> * @copyright Bernhard Posselt 2014 */ -app.directive('newsDraggable', () => { +app.directive('newsDraggable', function () { 'use strict'; - return (scope, elem, attr) => { - let options = scope.$eval(attr.newsDraggable); + return function (scope, elem, attr) { + var options = scope.$eval(attr.newsDraggable); if (angular.isDefined(options)) { elem.draggable(options); |