From 67f4929e49901583d06cc0af7ccf2fd68bd5f5f4 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Wed, 18 Feb 2015 22:31:45 +0000 Subject: [PATCH] null check on loadRootFolder --- .../web/public/coffee/ide/file-tree/FileTreeManager.coffee | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/services/web/public/coffee/ide/file-tree/FileTreeManager.coffee b/services/web/public/coffee/ide/file-tree/FileTreeManager.coffee index c9c1b4405f..9ea27ae62c 100644 --- a/services/web/public/coffee/ide/file-tree/FileTreeManager.coffee +++ b/services/web/public/coffee/ide/file-tree/FileTreeManager.coffee @@ -162,13 +162,8 @@ define [ return if !path? return path.split("/").slice(0, -1).join("/") - # forEachFolder: (callback) -> - # @forEachEntity (entity) -> - # if entity.type == "folder" - # callback(entity) - loadRootFolder: () -> - @$scope.rootFolder = @_parseFolder(@$scope.project.rootFolder[0]) + @$scope.rootFolder = @_parseFolder(@$scope?.project?.rootFolder[0]) _parseFolder: (rawFolder) -> folder = {