- if(params.toggle) {
- canvas.list.create({element1: parent1, element2: parent2});
- } else {
- if(canvas.list.areItemsOfTheSameList({element1: parent1, element2: parent2})) {
- canvas.list.extractItems({element1: parent1, element2: parent2, merge: false});
- }