diff --git a/lib/client/editor.js b/lib/client/editor.js index 4031a68a..70a60e58 100644 --- a/lib/client/editor.js +++ b/lib/client/editor.js @@ -102,7 +102,8 @@ CloudCommander.Editor.CodeMirror = { var lCodeMirror = pParent.getByClass('CodeMirror'); if(lCodeMirror.length) - lLeft.removeChild(lCodeMirror[0]); + lLeft.parentElement + .removeChild(lCodeMirror[0]); }; }), getById : function(pId){return document.getElementById(pId);},