code: function(handler, options) {
          OpenLayers.Control.prototype.initialize.apply(this, [options]);
          var callbacks = {done: this.measureComplete,
              point: this.measurePartial};
          if (this.immediate){
              callbacks.modify = this.measureImmediate;
          }
          this.callbacks = OpenLayers.Util.extend(callbacks, this.callbacks);
  
          // let the handler options override, so old code that passes 'persist'
          // directly to the handler does not need an update
          this.handlerOptions = OpenLayers.Util.extend(
              {persist: this.persist}, this.handlerOptions
          );
          this.handler = new handler(this, this.callbacks, this.handlerOptions);
      }
docs: Constructor: OpenLayers.Control.Measure
  
  Parameters:
  handler - {<OpenLayers.Handler>}
  options - {Object}