GUAC-1293: Refresh function need not be on scope.

This commit is contained in:
Michael Jumper
2015-08-13 13:22:48 -07:00
parent 6b27b6a877
commit b3a5ad38f8

View File

@@ -122,13 +122,6 @@ angular.module('client').directive('guacFileBrowser', [function guacFileBrowser(
ManagedFilesystem.downloadFile($scope.client, $scope.filesystem, file.streamName);
};
/**
* Refreshes the contents of the current directory.
*/
$scope.refresh = function refresh() {
ManagedFilesystem.refresh($scope.filesystem, $scope.filesystem.currentDirectory);
};
/**
* Creates a new element representing the given file and properly
* handling user events, bypassing the overhead incurred through
@@ -257,7 +250,7 @@ angular.module('client').directive('guacFileBrowser', [function guacFileBrowser(
// Refresh file browser when any upload completes
$scope.$on('guacUploadComplete', function uploadComplete(event, filename) {
$scope.refresh();
ManagedFilesystem.refresh($scope.filesystem, $scope.filesystem.currentDirectory);
});
}]