(newVal)
| 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) { |
no outgoing calls
no test coverage detected