code: function(xy) {
          this.points.unshift({xy: xy, tick: new Date().getTime()});
          if (this.points.length > this.nbPoints) {
              this.points.pop();
          }
      }
docs: Method: update
  Updates during the dragging.
  
  Parameters:
  xy - {<OpenLayers.Pixel>} The new position.