code: function() {
      var self = this;
      // delay to make sure the spinner has a chance to spin for a split second before it's dismissed
      var d = new Date();
      var delay = 0;
      if (self.refreshStartTime + self.__minSpinTime > d.getTime()){
        delay = self.refreshStartTime + self.__minSpinTime - d.getTime();
      }
      setTimeout(function(){
        if (self.__refreshTail){
          self.__refreshTail();
        }
        setTimeout(function(){
          self.__refreshActive = false;
          if (self.__refreshDeactivate) {
            self.__refreshDeactivate();
          }
          if (self.__refreshHide){
            self.__refreshHide();
          }
  
          self.scrollTo(self.__scrollLeft, self.__scrollTop, true);
        },self.__refreshTailTime);
      },delay);
    }
docs: Signalizes that pull-to-refresh is finished.