@@ -619,10 +619,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
619
619
} ,
620
620
621
621
isNullOrUndefined : function ( obj ) {
622
- if ( obj === undefined || obj === null ) {
623
- return true ;
624
- }
625
- return false ;
622
+ return ( obj === undefined || obj === null ) ;
626
623
} ,
627
624
628
625
endsWith : function ( str , suffix ) {
@@ -831,7 +828,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
831
828
} else {
832
829
s . logWarn ( '[focus.byId] Element id ' + elementID + ' was not found.' ) ;
833
830
}
834
- } ) ;
831
+ } , 0 , false ) ;
835
832
this . queue . push ( promise ) ;
836
833
return promise ;
837
834
} ,
@@ -856,7 +853,7 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
856
853
if ( element ) {
857
854
element [ 0 ] . focus ( ) ;
858
855
}
859
- } ) ;
856
+ } , 0 , false ) ;
860
857
this . queue . push ( promise ) ;
861
858
return promise ;
862
859
} ,
@@ -886,8 +883,8 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
886
883
} ;
887
884
this . _purgeQueue ( ) ;
888
885
if ( aSync ) { //Do this asynchronysly
889
- var promise = $timeout ( focusBySelector ) ;
890
- this . queue . push ( $timeout ( focusBySelector ) ) ;
886
+ var promise = $timeout ( focusBySelector , 0 , false ) ;
887
+ this . queue . push ( promise ) ;
891
888
return promise ;
892
889
} else {
893
890
return focusBySelector ( ) ;
0 commit comments