code: function() {
          var activated = OpenLayers.Control.prototype.activate.call(this);
          if(activated) {
              if(!this.source) {
                  if(!this.handler) {
                      this.handler = new OpenLayers.Handler.Path(this,
                          {done: function(geometry) {
                              this.onSketchComplete({
                                  feature: new OpenLayers.Feature.Vector(geometry)
                              });
                          }},
                          {layerOptions: this.sourceOptions}
                      );
                  }
                  this.handler.activate();
              } else if(this.source.events) {
                  this.source.events.on({
                      sketchcomplete: this.onSketchComplete,
                      afterfeaturemodified: this.afterFeatureModified,
                      scope: this
                  });
              }
          }
          return activated;
      }
docs: APIMethod: activate
  Activate the control.  Activating the control registers listeners for
  editing related events so that during feature creation and
  modification, features in the target will be considered for
  splitting.