code: function() {
          var index = this.line.geometry.components.length - 1;
          this.line.geometry.removeComponent(this.line.geometry.components[index]);
          this.removePoint();
          this.finalize();
      }
docs: APIMethod: finishGeometry
  Finish the geometry and send it back to the control.