Language: JavaScript
Label: safe
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
z);EditorUi.debug("P2PCollab: error socket on",K.joinId);N||M!=K.joinId||(P==M&&(EditorUi.debug("P2PCollab: joinInProgress in error on",K.joinId),P=!1),l||(EditorUi.debug("P2PCollab: calling rejoin on",K.joinId),l=!0,this.joinFile(!0)));e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}));e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}catch(z){p=z,e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}};this.destroy=function(){if(!N){EditorUi.debug("P2PCollab: destroyed");
N=!0;for(sessionId in g)D(sessionId);null!=this.mouseListeners&&A.removeMouseListener(this.mouseListeners);null!=this.selectionChangeListener&&A.getSelectionModel().removeListener(this.selectionChangeListener);null!=this.shareCursorPositionListener&&b.removeListener(this.shareCursorPositionListener);null!=this.cursorHandler&&(mxEvent.removeListener(A.container,"scroll",this.cursorHandler),A.getView().removeListener(mxEvent.SCALE,this.cursorHandler),A.getView().removeListener(mxEvent.TRANSLATE,this.cursorHandler),
A.getView().removeListener(mxEvent.SCALE_AND_TRANSLATE,this.cursorHandler),b.editor.removeListener("pageSelected",this.cursorHandler),b.removeListener(this.cursorHandler));null!=H&&1<=H.readyState&&(H.close(1E3),H=null);for(var C in F)null!=F[C]&&F[C].destroy();e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}}};