mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-22 23:08:13 -05:00
12 lines
432 B
JavaScript
12 lines
432 B
JavaScript
|
import FakeEvent from "./lib/FakeEvent.js";
|
||
|
class FDBVersionChangeEvent extends FakeEvent {
|
||
|
constructor(type, parameters = {}) {
|
||
|
super(type);
|
||
|
this.newVersion = parameters.newVersion !== undefined ? parameters.newVersion : null;
|
||
|
this.oldVersion = parameters.oldVersion !== undefined ? parameters.oldVersion : 0;
|
||
|
}
|
||
|
toString() {
|
||
|
return "[object IDBVersionChangeEvent]";
|
||
|
}
|
||
|
}
|
||
|
export default FDBVersionChangeEvent;
|