Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit 2684c3f

Browse files
fix(database): revert change from #7b07ae3
1 parent a7cbd95 commit 2684c3f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/database.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*/ /** */
44
import { Inject, Injectable } from '@angular/core';
55
import { AngularFire, FirebaseListObservable, FirebaseObjectObservable } from 'angularfire2';
6-
import { isNil } from 'angularfire2/utils';
76
import { FirebaseListFactoryOpts, FirebaseObjectFactoryOpts } from 'angularfire2/interfaces';
87

98
import { AfoListObservable } from './afo-list-observable';
@@ -301,6 +300,12 @@ export class AngularFireOfflineDatabase {
301300
});
302301
}
303302
}
303+
/**
304+
* Utility function used to check if an value exists.
305+
*/
306+
export function isNil(obj: any): boolean {
307+
return obj === undefined || obj === null;
308+
}
304309
/**
305310
* Adds the properies of `$key`, `$value`, `$exists` as required by AngularFire2
306311
*/

0 commit comments

Comments
 (0)