code: function (time) {
      var data = this.data;
      var prevCheckTime = this.prevCheckTime;
  
      if (!data.enabled) { return; }
  
      // Only check for intersection if interval time has passed.
      if (prevCheckTime && (time - prevCheckTime < data.interval)) { return; }
  
      // Update check time.
      this.prevCheckTime = time;
      this.checkIntersections();
    }
docs: Check for intersections and cleared intersections on an interval.