Simplifying Code
This commit is contained in:
1 parent
29a349b50d
commit
297d2d500f
5 files changed
+164
-197
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user