mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-15 01:01:43 +10:00
Firebase Stub: .off function implementation
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user