()
| 756 | } |
| 757 | |
| 758 | reset() { |
| 759 | this.history.position = 0; |
| 760 | this.history.items = []; |
| 761 | this.history.transitioning = true; |
| 762 | this.reloading = true; |
| 763 | this.cm.setValue(""); |
| 764 | for(let span of this.getAllSpans()) { |
| 765 | span.clear(); |
| 766 | } |
| 767 | this.reloading = false; |
| 768 | this.history.transitioning = false; |
| 769 | } |
| 770 | |
| 771 | // This is a new document and we need to rebuild it from scratch. |
| 772 | loadDocument(id:string, text:string, packed:any[], attributes:{[id:string]: any|undefined}) { |
no test coverage detected