public boolean hasActiveTasks(){
  return mActiveTasks.size() > 0;
}

public boolean hasActiveTasks ( ) { return mActiveTasks . size ( ) > 0 ; }
get whether there are any running js tasks at the moment .
