code: function(cancel) {
          var key = cancel ? "cancel" : "done";
          this.mouseDown = false;
          this.lastDown = null;
          this.lastUp = null;
          this.lastTouchPx = null;
          this.callback(key, [this.geometryClone()]);
          this.destroyFeature(cancel);
      }
docs: Method: finalize
  Finish the geometry and call the "done" callback.
  
  Parameters:
  cancel - {Boolean} Call cancel instead of done callback.  Default
  is false.