simplify
This commit is contained in:
@@ -45,9 +45,9 @@ angular.module('Application').controller('AppsController', ['$scope', '$timeout'
|
||||
};
|
||||
|
||||
Client.onReady(function () {
|
||||
Client.refreshInstalledApps(); // refresh the new list immediately when switching from another view (appstore)
|
||||
Client.refreshInstalledApps(function () {}); // refresh the new list immediately when switching from another view (appstore)
|
||||
|
||||
var refreshAppsTimer = $interval(Client.refreshInstalledApps.bind(Client), 5000);
|
||||
var refreshAppsTimer = $interval(Client.refreshInstalledApps.bind(Client, function () {}), 5000);
|
||||
$scope.$on('$destroy', function () {
|
||||
$interval.cancel(refreshAppsTimer);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user