Skip to content

Commit

Permalink
Updated threejs
Browse files Browse the repository at this point in the history
  • Loading branch information
tentone committed May 15, 2018
1 parent ea6731e commit 8be3d4f
Show file tree
Hide file tree
Showing 2 changed files with 316 additions and 311 deletions.
4 changes: 4 additions & 0 deletions source/lib/codemirror/addon/dialog/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
} else { // Assuming it's a detached DOM element.
dialog.appendChild(template);
}
CodeMirror.addClass(wrap, 'dialog-opened');
return dialog;
}

Expand All @@ -47,6 +48,7 @@
} else {
if (closed) return;
closed = true;
CodeMirror.rmClass(dialog.parentNode, 'dialog-opened');
dialog.parentNode.removeChild(dialog);
me.focus();

Expand Down Expand Up @@ -102,6 +104,7 @@
function close() {
if (closed) return;
closed = true;
CodeMirror.rmClass(dialog.parentNode, 'dialog-opened');
dialog.parentNode.removeChild(dialog);
me.focus();
}
Expand Down Expand Up @@ -141,6 +144,7 @@
if (closed) return;
closed = true;
clearTimeout(doneTimer);
CodeMirror.rmClass(dialog.parentNode, 'dialog-opened');
dialog.parentNode.removeChild(dialog);
}

Expand Down
Loading

0 comments on commit 8be3d4f

Please sign in to comment.