diff options
Diffstat (limited to 'js/directive/NewsAutoFocus.js')
-rw-r--r-- | js/directive/NewsAutoFocus.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/directive/NewsAutoFocus.js b/js/directive/NewsAutoFocus.js index b73dd2443..87bcab006 100644 --- a/js/directive/NewsAutoFocus.js +++ b/js/directive/NewsAutoFocus.js @@ -7,9 +7,9 @@ * @author Bernhard Posselt <dev@bernhard-posselt.com> * @copyright Bernhard Posselt 2014 */ -app.directive('newsAutoFocus', () => { +app.directive('newsAutoFocus', function () { 'use strict'; - return (scope, elem, attrs) => { + return function (scope, elem, attrs) { if (attrs.newsAutofocus) { $(attrs.newsAutofocus).focus(); } else { |