(element: T['element'], tagID: $)
| 79 | |
| 80 | //Mutations |
| 81 | push(element: T['element'], tagID: $): void { |
| 82 | this.stackTop++; |
| 83 | |
| 84 | this.items[this.stackTop] = element; |
| 85 | this.current = element; |
| 86 | this.tagIDs[this.stackTop] = tagID; |
| 87 | this.currentTagId = tagID; |
| 88 | |
| 89 | if (this._isInTemplate()) { |
| 90 | this.tmplCount++; |
| 91 | } |
| 92 | |
| 93 | this.handler.onItemPush(element, tagID, true); |
| 94 | } |
| 95 | |
| 96 | pop(): void { |
| 97 | const popped = this.current; |
no test coverage detected