| 37 | } |
| 38 | |
| 39 | constructor (options) { |
| 40 | super() |
| 41 | this.updateSlider = this.updateSlider.bind(this) |
| 42 | this.spade = new Spade() |
| 43 | this.options = options |
| 44 | this.options.decompressedLog = LZString.decompressFromUTF16(this.options.rawLog) |
| 45 | if (this.options.decompressedLog == null) { return } |
| 46 | this.options.events = this.spade.expand(JSON.parse(this.options.decompressedLog)) |
| 47 | this.maxTime = this.options.events[this.options.events.length - 1].timestamp |
| 48 | } |
| 49 | // @spade.play(@options.events, $('#codearea').context) |
| 50 | |
| 51 | afterRender () { |