Fix up the constructor

This commit is contained in:
Matthew Perry
2012-02-07 10:03:03 -08:00
parent 54e9fdb784
commit d46092f717
+14 -7
View File
@@ -101,13 +101,21 @@ OpenLayers.Control.UTFGrid = OpenLayers.Class(OpenLayers.Control, {
} }
}, },
/**
* Constructor: <OpenLayers.Control.UTFGrid>
*
* Parameters:
* options - {Object}
*/
initialize: function(options) { initialize: function(options) {
this.handlerOptions = OpenLayers.Util.extend( options = options || {};
{}, this.defaultHandlerOptions options.handlerOptions = options.handlerOptions || {};
); OpenLayers.Control.prototype.initialize.apply(this, [options]);
OpenLayers.Control.prototype.initialize.apply( console.log(this);
this, arguments if (options.div) {
); this.element = OpenLayers.Util.getElement(options.div);
}
this.resetHandler(); this.resetHandler();
}, },
@@ -185,7 +193,6 @@ OpenLayers.Control.UTFGrid = OpenLayers.Class(OpenLayers.Control, {
/** /**
* Method: callback * Method: callback
* MP TODO
* Takes the attrs and does somethings with them * Takes the attrs and does somethings with them
* this is a default (intended to be overridden) * this is a default (intended to be overridden)
*/ */