remove timeout

This commit is contained in:
hzsunshx
2015-09-23 17:18:48 +08:00
parent 5980e83275
commit 5d4fc2f391

View File

@@ -1,4 +1,4 @@
module.exports = function FsCtrl($scope, $timeout) {
module.exports = function FsCtrl($scope) {
$scope.search = ''
$scope.files = [];
$scope.paths = [];
@@ -43,8 +43,5 @@ module.exports = function FsCtrl($scope, $timeout) {
// init
// $scope.list($scope.dir); // FIXME(ssx): can't call immediately, do not known why.
$timeout(function(){
listdir();
}, 800);
listdir($scope.dir);
}