setTimeout(function(){ if(LoadingIndicator.isOpen()){ LoadingIndicator.hide(); } }, 4000); //End of setTime
function(){ LoadingIndicator.hide(); }