@@ -30,26 +30,26 @@ let log;
3030export class Firestack extends Singleton {
3131
3232 constructor ( options ) {
33- super ( options ) ;
33+ var instance = super ( options ) ;
3434
35- this . options = options || { } ;
36- this . _debug = this . options . debug || false ;
37- log = this . _log = new Log ( 'firestack' , this . _debug ) ;
35+ instance . options = options || { } ;
36+ instance . _debug = instance . options . debug || false ;
37+ log = instance . _log = new Log ( 'firestack' , instance . _debug ) ;
3838
3939 log . info ( 'Creating new firestack instance' ) ;
4040
41- this . _remoteConfig = this . options . remoteConfig || { } ;
42- delete this . options . remoteConfig ;
41+ instance . _remoteConfig = instance . options . remoteConfig || { } ;
42+ delete instance . options . remoteConfig ;
4343
44- this . configured = this . options . configure || false ;
45- this . auth = null ;
44+ instance . configured = instance . options . configure || false ;
45+ instance . auth = null ;
4646
47- this . eventHandlers = { } ;
47+ instance . eventHandlers = { } ;
4848
49- log . info ( 'Calling configure with options' , this . options ) ;
50- this . configurePromise = this . configure ( this . options ) ;
49+ log . info ( 'Calling configure with options' , instance . options ) ;
50+ instance . configurePromise = instance . configure ( instance . options ) ;
5151
52- this . _auth = new Authentication ( this , this . options ) ;
52+ instance . _auth = new Authentication ( instance , instance . options ) ;
5353 }
5454
5555 configure ( opts = { } ) {
0 commit comments