docs: function(event) {
          var point = event.vertex;
          var components = this.line.geometry.components;
          // ensure that vertices of interior ring are contained by exterior ring
          if (!this.polygon.geometry.intersects(point)) {
              var last = components[components.length-3];
              point.x = last.x;
              point.y = last.y;
          }
      }