Fix up the constructor
This commit is contained in:
@@ -101,13 +101,21 @@ OpenLayers.Control.UTFGrid = OpenLayers.Class(OpenLayers.Control, {
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Constructor: <OpenLayers.Control.UTFGrid>
|
||||
*
|
||||
* Parameters:
|
||||
* options - {Object}
|
||||
*/
|
||||
initialize: function(options) {
|
||||
this.handlerOptions = OpenLayers.Util.extend(
|
||||
{}, this.defaultHandlerOptions
|
||||
);
|
||||
OpenLayers.Control.prototype.initialize.apply(
|
||||
this, arguments
|
||||
);
|
||||
options = options || {};
|
||||
options.handlerOptions = options.handlerOptions || {};
|
||||
OpenLayers.Control.prototype.initialize.apply(this, [options]);
|
||||
console.log(this);
|
||||
if (options.div) {
|
||||
this.element = OpenLayers.Util.getElement(options.div);
|
||||
}
|
||||
|
||||
this.resetHandler();
|
||||
},
|
||||
|
||||
@@ -185,7 +193,6 @@ OpenLayers.Control.UTFGrid = OpenLayers.Class(OpenLayers.Control, {
|
||||
|
||||
/**
|
||||
* Method: callback
|
||||
* MP TODO
|
||||
* Takes the attrs and does somethings with them
|
||||
* this is a default (intended to be overridden)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user