code: function() {
          var geometry = this.line.geometry;
          var components = geometry.components;
          var index = this.getCurrentPointIndex() - 1;
          var target = components[index];
          var undone = geometry.removeComponent(target);
          if (undone) {
              // On touch devices, set the current ("mouse location") point to
              // match the last digitized point.
              if (this.touch && index > 0) {
                  components = geometry.components; // safety
                  var lastpt = components[index - 1];
                  var curptidx = this.getCurrentPointIndex();
                  var curpt = components[curptidx];
                  curpt.x = lastpt.x;
                  curpt.y = lastpt.y;
              }
              if (!this.redoStack) {
                  this.redoStack = [];
              }
              this.redoStack.push(target);
              this.drawFeature();
          }
          return undone;
      }
docs: Method: undo
  Remove the most recently added point in the sketch geometry.
  
  Returns:
  {Boolean} A point was removed.