From 5d4fc2f391a32d7d5ba087ffc8c0c33ffd1f68c4 Mon Sep 17 00:00:00 2001 From: hzsunshx Date: Wed, 23 Sep 2015 17:18:48 +0800 Subject: [PATCH] remove timeout --- res/app/control-panes/filesystem/fs-controller.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/res/app/control-panes/filesystem/fs-controller.js b/res/app/control-panes/filesystem/fs-controller.js index 7238148b..9a7af44e 100644 --- a/res/app/control-panes/filesystem/fs-controller.js +++ b/res/app/control-panes/filesystem/fs-controller.js @@ -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); }