(a, b)
| 51392 | else window.removeEventListener(key, this.handlers[key]); |
| 51393 | } |
| 51394 | isSameDataSource(a, b) { |
| 51395 | if (a.dataSourceType === b.dataSourceType && a.type === b.type && a.id === b.id) { |
| 51396 | if (a.dataSourceType === "url") return a.dataUrl === b.dataUrl; |
| 51397 | return true; |
| 51398 | } |
| 51399 | return false; |
| 51400 | } |
| 51401 | hydrateSnapshot(snapshot, selectedSnapshotIndex = -1) { |
| 51402 | if (snapshot.dataSource) { |
| 51403 | if (this.isSameDataSource(snapshot.dataSource, this.state.dataSource)) { |