(isUl)
| 550 | if (n>0) return this[n-1]; |
| 551 | }; |
| 552 | var _resetList = function(isUl){ |
| 553 | _list.isUl = isUl; |
| 554 | _list.element = angular.element(isUl ? "<ul>" : "<ol>"); |
| 555 | _list.lastIndent = []; |
| 556 | _list.lastIndent.peek = function(){ |
| 557 | var n = this.length; |
| 558 | if (n>0) return this[n-1]; |
| 559 | }; |
| 560 | _list.lastLevelMatch = null; |
| 561 | }; |
| 562 | for(var i = 0; i <= dom[0].childNodes.length; i++){ |
| 563 | if(!dom[0].childNodes[i] || dom[0].childNodes[i].nodeName === "#text"){ |
| 564 | continue; |