(tagname, cls /*, ... elts*/)
| 579 | var cmpPos = CodeMirror.cmpPos; |
| 580 | |
| 581 | function elt(tagname, cls /*, ... elts*/) { |
| 582 | var e = document.createElement(tagname); |
| 583 | if (cls) e.className = cls; |
| 584 | for (var i = 2; i < arguments.length; ++i) { |
| 585 | var elt = arguments[i]; |
| 586 | if (typeof elt == "string") elt = document.createTextNode(elt); |
| 587 | e.appendChild(elt); |
| 588 | } |
| 589 | return e; |
| 590 | } |
| 591 | |
| 592 | function dialog(cm, text, f) { |
| 593 | if (cm.openDialog) |
no outgoing calls
no test coverage detected