From 7b5cddb7ce5b13ea1b198f69c981df553a87acca Mon Sep 17 00:00:00 2001 From: WilliamBZA Date: Wed, 2 May 2018 13:32:03 +0200 Subject: [PATCH] Switch from arrow functions --- src/ServicePulse.Host/app/js/views/archive/controller.js | 4 ++-- .../app/js/views/failed_messages/controller.js | 2 -- src/ServicePulse.Host/app/js/views/message/controller.js | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/ServicePulse.Host/app/js/views/archive/controller.js b/src/ServicePulse.Host/app/js/views/archive/controller.js index 0f6b545cc3..f6445c39cf 100644 --- a/src/ServicePulse.Host/app/js/views/archive/controller.js +++ b/src/ServicePulse.Host/app/js/views/archive/controller.js @@ -74,12 +74,12 @@ vm.loadingData = false; }; - var saveSelectedArchiveGroup = (amount, unit) => { + var saveSelectedArchiveGroup = function (amount, unit) { $cookies.put('archive_amount', amount); $cookies.put('archive_unit', unit); }; - var getSelectedArchiveGroup = () => { + var getSelectedArchiveGroup = function () { var amount = $cookies.get("archive_amount"); var unit = $cookies.get("archive_unit"); diff --git a/src/ServicePulse.Host/app/js/views/failed_messages/controller.js b/src/ServicePulse.Host/app/js/views/failed_messages/controller.js index f02ebe2a75..073f632633 100644 --- a/src/ServicePulse.Host/app/js/views/failed_messages/controller.js +++ b/src/ServicePulse.Host/app/js/views/failed_messages/controller.js @@ -111,8 +111,6 @@ toastService.showInfo(messageId + ' copied to clipboard'); }; - - vm.retrySelected = function () { toastService.showInfo("Retrying " + vm.selectedIds.length + " messages..."); serviceControlService.retryFailedMessages(vm.selectedIds) diff --git a/src/ServicePulse.Host/app/js/views/message/controller.js b/src/ServicePulse.Host/app/js/views/message/controller.js index 8b11fea863..8f587a337d 100644 --- a/src/ServicePulse.Host/app/js/views/message/controller.js +++ b/src/ServicePulse.Host/app/js/views/message/controller.js @@ -82,7 +82,7 @@ } function getContentType(headers) { - return headers.find((element) => element.key === 'NServiceBus.ContentType').value; + return headers.find(function (element) { return element.key === 'NServiceBus.ContentType'; }).value; } vm.retryMessage = function () {