MCPcopy
hub / github.com/PaulTaykalo/objc-dependency-visualizer / close

Function close

Scripts/ace/keybinding-vim.js:723–734  ·  view source on GitHub ↗
(newVal)

Source from the content-addressed store, hash-verified

721 var dialog = dialogDiv(this, template, options.bottom);
722 var closed = false, me = this;
723 function close(newVal) {
724 if (typeof newVal == 'string') {
725 inp.value = newVal;
726 } else {
727 if (closed) return;
728 closed = true;
729 dialog.parentNode.removeChild(dialog);
730 me.focus();
731
732 if (options.onClose) options.onClose(dialog);
733 }
734 }
735
736 var inp = dialog.getElementsByTagName("input")[0], button;
737 if (inp) {

Callers 4

keybinding-vim.jsFile · 0.85
onPromptKeyUpFunction · 0.85
onPromptKeyDownFunction · 0.85
stopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected