Skip to content

Commit cd22076

Browse files
committed
Remove listeners from Atom2 when the AtomNode is disposed. #115
1 parent 61b0862 commit cd22076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/common/view/BAMScreenView.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -445,8 +445,8 @@ class BAMScreenView extends ScreenView {
445445
const atomNode = this.kitPlayAreaNode.atomNodeMap[ atom.id ];
446446
atomNode.dragListener.dispose();
447447
atomNode.dispose();
448-
449448
delete this.kitPlayAreaNode.atomNodeMap[ atom.id ];
449+
atom.separateMoleculeEmitter.removeAllListeners();
450450
}
451451
}
452452

0 commit comments

Comments
 (0)