Link updates

This commit is contained in:
dandelp
2017-12-27 09:52:26 -06:00
parent 760c37e20c
commit 97a92f6d33
7 changed files with 58 additions and 17006 deletions

View File

@ -70,14 +70,16 @@ export class NodeModel extends BaseModel<BaseModelListener> {
});
}
clone(lookupTable) {
if(((lookupTable||{})[this.class]||{}).hasOwnProperty(this.id)) return lookupTable[this.class][this.id];
clone(lookupTable = {}) {
if (this.getClone(lookupTable)) {
return this.getClone(lookupTable);
}
let clone = super.clone(lookupTable);
clone.ports = {}
_.values(this.ports).map(port => {
clone.ports = {};
_.values(this.ports).map((port) => {
clone.addPort(port.clone(lookupTable));
})
return clone
});
return clone;
}
remove() {