Simplifying Code

This commit is contained in:
Luis Fernando Molina committed 2019-05-06 14:39:30 +02:00
1 parent 29a349b50d
commit 297d2d500f
5 files changed
+164 -197

No files matched your search

+1 -5
View File
@@ -109,11 +109,7 @@ function newStrategyCollectionItem () {
payload.parentNode = parentNode
payload.onMenuItemClick = onMenuItemClick
canvas.floatingSpace.strategyParts.createNewStrategyPart(partType, payload, onStrategyPartCreated)
function onStrategyPartCreated (err, pPartHandle) {
node.handle = pPartHandle
}
node.handle = canvas.floatingSpace.strategyParts.createNewStrategyPart(partType, payload)
}
function destroyPart (node) {