MCPcopy
hub / github.com/exceljs/exceljs / rollback

Method rollback

lib/utils/xml-stream.js:145–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143 }
144
145 rollback() {
146 const r = this._rollbacks.pop();
147 if (this._xml.length > r.xml) {
148 this._xml.splice(r.xml, this._xml.length - r.xml);
149 }
150 if (this._stack.length > r.stack) {
151 this._stack.splice(r.stack, this._stack.length - r.stack);
152 }
153 this.leaf = r.leaf;
154 this.open = r.open;
155 }
156
157 get xml() {
158 this.closeAll();

Callers 6

renderMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
xml-stream.spec.jsFile · 0.80

Calls 2

popMethod · 0.80
spliceMethod · 0.65

Tested by

no test coverage detected