Просмотр исходного кода

added comment about using a project entity iterator

Brian Gough 8 лет назад
Родитель
Сommit
2bb2d9615f

+ 4 - 0
services/web/app/coffee/Features/Project/ProjectEntityUpdateHandler.coffee

@@ -416,6 +416,10 @@ module.exports = ProjectEntityUpdateHandler = self =
 			else
 				callback()
 
+	# Note: the _cleanUpEntity code and _updateProjectStructureWithDeletedEntity
+	# methods both need to recursively iterate over the entities in folder.
+	# These are currently using separate implementations of the recursion. In
+	# future, these could be simplified using a common project entity iterator.
 	_updateProjectStructureWithDeletedEntity: (project, entity, entityType, entityPath, userId, callback = (error) ->) ->
 		# compute the changes to the project structure
 		if(entityType.indexOf("file") != -1)