File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,7 @@ export class Database {
17
17
repo_ : Repo ;
18
18
root_ : Reference ;
19
19
INTERNAL ;
20
- private __database : Database ;
21
-
20
+
22
21
static ServerValue = {
23
22
'TIMESTAMP' : {
24
23
'.sv' : 'timestamp'
@@ -47,10 +46,6 @@ export class Database {
47
46
return this . repo_ . app ;
48
47
}
49
48
50
- get database ( ) : Database {
51
- return this . __database || ( this . __database = new Database ( this ) ) ;
52
- }
53
-
54
49
/**
55
50
* Returns a reference to the root or the path specified in opt_pathString.
56
51
* @param {string= } pathString
@@ -110,6 +105,12 @@ export class Database {
110
105
}
111
106
} ;
112
107
108
+ Object . defineProperty ( Repo . prototype , 'database' , {
109
+ get ( ) {
110
+ return this . __database || ( this . __database = new Database ( this ) ) ;
111
+ }
112
+ } ) ;
113
+
113
114
class DatabaseInternals {
114
115
database
115
116
/** @param {!Database } database */
You can’t perform that action at this time.
0 commit comments