Firebase Stub: .off function implementation

This commit is contained in:
gianantoniopini
2021-01-14 17:49:52 +01:00
parent 6ac0f37ada
commit 72176e2500
2 changed files with 55 additions and 11 deletions

View File

@ -146,11 +146,11 @@ class Reference {
}
off() {
return this !== null;
this._eventCallbacks = {};
}
on(eventType, callback) {
this._eventCallbacks[eventType] = callback;
this.eventCallbacks[eventType] = callback;
if (eventType === DatabaseConstants.valueEventType) {
this.debounceEventCallback(eventType);