ZeroOmega/omega-web/lib/fake-indexeddb/FDBVersionChangeEvent.js

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;