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) {
|
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)
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user