(tagname, cls /*, ... elts*/)
| 571 | var cmpPos = CodeMirror.cmpPos; |
| 572 | |
| 573 | function elt(tagname, cls /*, ... elts*/) { |
| 574 | var e = document.createElement(tagname); |
| 575 | if (cls) e.className = cls; |
| 576 | for (var i = 2; i < arguments.length; ++i) { |
| 577 | var elt = arguments[i]; |
| 578 | if (typeof elt == "string") elt = document.createTextNode(elt); |
| 579 | e.appendChild(elt); |
| 580 | } |
| 581 | return e; |
| 582 | } |
| 583 | |
| 584 | function dialog(cm, text, f) { |
| 585 | if (cm.openDialog) |
no outgoing calls
no test coverage detected