Changed functions to arrow functions for only-arrow-functions rule. (#13131)

This commit is contained in:
Patrick O'Carroll
2018-09-05 07:47:30 +02:00
committed by Torkel Ödegaard
parent 7c88436a9b
commit 72ab24f300
50 changed files with 367 additions and 367 deletions

View File

@@ -16,11 +16,11 @@ function uploadDashboardDirective(timer, alertSrv, $location) {
scope: {
onUpload: '&',
},
link: function(scope) {
link: scope => {
function file_selected(evt) {
const files = evt.target.files; // FileList object
const readerOnload = function() {
return function(e) {
const readerOnload = () => {
return e => {
let dash;
try {
dash = JSON.parse(e.target.result);
@@ -30,7 +30,7 @@ function uploadDashboardDirective(timer, alertSrv, $location) {
return;
}
scope.$apply(function() {
scope.$apply(() => {
scope.onUpload({ dash: dash });
});
};