custom asyncForEach() is gone
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
'use strict';
|
||||
|
||||
/* global asyncForEach, angular, $ */
|
||||
/* global async */
|
||||
/* global angular */
|
||||
/* global $ */
|
||||
|
||||
angular.module('Application').controller('NotificationsController', ['$scope', '$timeout', 'Client', function ($scope, $timeout, Client) {
|
||||
|
||||
@@ -80,7 +82,7 @@ angular.module('Application').controller('NotificationsController', ['$scope', '
|
||||
clearAll: function () {
|
||||
$scope.clearAllBusy = true;
|
||||
|
||||
asyncForEach($scope.notifications.notifications, function (notification, callback) {
|
||||
async.eachSeries($scope.notifications.notifications, function (notification, callback) {
|
||||
if (notification.acknowledged) return callback();
|
||||
$scope.notifications.ack(notification, null /* no click event */, callback);
|
||||
}, function (error) {
|
||||
|
||||
Reference in New Issue
Block a user