(collection, elt)
| 137 | CodeMirror.commands.closeTag = function(cm) { return autoCloseCurrent(cm); }; |
| 138 | |
| 139 | function indexOf(collection, elt) { |
| 140 | if (collection.indexOf) return collection.indexOf(elt); |
| 141 | for (var i = 0, e = collection.length; i < e; ++i) |
| 142 | if (collection[i] == elt) return i; |
| 143 | return -1; |
| 144 | } |
| 145 | |
| 146 | // If xml-fold is loaded, we use its functionality to try and verify |
| 147 | // whether a given tag is actually unclosed. |