added comment about using a project entity iterator

This commit is contained in:
Brian Gough 2018-05-08 11:24:31 +01:00
parent f34ce5b12b
commit 2bb2d9615f

View file

@ -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)