Designer Refactoring

This commit is contained in:
Luis Fernando Molina committed 2020-02-14 14:48:57 +01:00
1 parent e68d3d90d6
commit da6836f77c
28 files changed
+60 -60

No files matched your search

@@ -0,0 +1,24 @@
function newReferenceAttachDetach () {
thisObject = {
referenceDetachNode: referenceDetachNode,
referenceAttachNode: referenceAttachNode
}
return thisObject
function referenceDetachNode (node) {
completeDetachment(node)
}
function referenceAttachNode (node, attachToNode, rootNodes) {
completeAttachment(node, attachToNode)
}
function completeAttachment (node, attachToNode) {
node.payload.referenceParent = attachToNode
}
function completeDetachment (node) {
node.payload.referenceParent = undefined
}
}