File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ fireauth.args.func = function(opt_name, opt_optional) {
307
307
name : opt_name || '' ,
308
308
typeLabel : 'a function' ,
309
309
optional : ! ! opt_optional ,
310
- validator : goog . isFunction
310
+ validator : x => typeof x === 'function'
311
311
} ;
312
312
} ;
313
313
@@ -564,7 +564,7 @@ fireauth.args.phoneInfoOptions = function(name, optional) {
564
564
fireauth . args . validateMultiFactorSession_ = function ( session , type ) {
565
565
return goog . isObject ( session ) && typeof session . type === 'string' &&
566
566
session . type === type &&
567
- goog . isFunction ( session . getRawSession ) ;
567
+ typeof session . getRawSession === 'function' ;
568
568
} ;
569
569
570
570
@@ -613,7 +613,7 @@ fireauth.args.applicationVerifier = function(opt_optional) {
613
613
function ( applicationVerifier ) {
614
614
return ! ! ( applicationVerifier &&
615
615
typeof applicationVerifier . type === 'string' &&
616
- goog . isFunction ( applicationVerifier . verify ) ) ;
616
+ typeof applicationVerifier . verify === 'function' ) ;
617
617
} )
618
618
} ) ;
619
619
} ;
Original file line number Diff line number Diff line change @@ -1412,9 +1412,9 @@ fireauth.Auth.prototype.onIdTokenChanged = function(
1412
1412
// and different promises library and this leads to calls resolutions order
1413
1413
// being different from the promises registration order.
1414
1414
Promise . resolve ( ) . then ( function ( ) {
1415
- if ( goog . isFunction ( nextOrObserver ) ) {
1415
+ if ( typeof nextOrObserver === 'function' ) {
1416
1416
nextOrObserver ( self . currentUser_ ( ) ) ;
1417
- } else if ( goog . isFunction ( nextOrObserver [ 'next' ] ) ) {
1417
+ } else if ( typeof nextOrObserver [ 'next' ] === 'function' ) {
1418
1418
nextOrObserver [ 'next' ] ( self . currentUser_ ( ) ) ;
1419
1419
}
1420
1420
} ) ;
@@ -1458,9 +1458,9 @@ fireauth.Auth.prototype.onAuthStateChanged = function(
1458
1458
// it has the correct UID before triggering the user state change
1459
1459
// listeners.
1460
1460
self . userStateChangeUid_ = self . getUid ( ) ;
1461
- if ( goog . isFunction ( nextOrObserver ) ) {
1461
+ if ( typeof nextOrObserver === 'function' ) {
1462
1462
nextOrObserver ( self . currentUser_ ( ) ) ;
1463
- } else if ( goog . isFunction ( nextOrObserver [ 'next' ] ) ) {
1463
+ } else if ( typeof nextOrObserver [ 'next' ] === 'function' ) {
1464
1464
nextOrObserver [ 'next' ] ( self . currentUser_ ( ) ) ;
1465
1465
}
1466
1466
} ) ;
You can’t perform that action at this time.
0 commit comments