Using the correct superclass. Thanks jorix for investigating and fixing this. p=jorix (closes #3373)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@12120 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
ahocevar
2011-06-21 20:53:53 +00:00
parent 1fb626bc8d
commit 9b1aca53fa
+3 -3
View File
@@ -16,7 +16,7 @@
* instance with the <OpenLayers.Handler.RegularPolygon> constructor. * instance with the <OpenLayers.Handler.RegularPolygon> constructor.
* *
* Inherits from: * Inherits from:
* - <OpenLayers.Handler> * - <OpenLayers.Handler.Drag>
*/ */
OpenLayers.Handler.RegularPolygon = OpenLayers.Class(OpenLayers.Handler.Drag, { OpenLayers.Handler.RegularPolygon = OpenLayers.Class(OpenLayers.Handler.Drag, {
@@ -141,7 +141,7 @@ OpenLayers.Handler.RegularPolygon = OpenLayers.Class(OpenLayers.Handler.Drag, {
this.style = OpenLayers.Util.extend(OpenLayers.Feature.Vector.style['default'], {}); this.style = OpenLayers.Util.extend(OpenLayers.Feature.Vector.style['default'], {});
} }
OpenLayers.Handler.prototype.initialize.apply(this, OpenLayers.Handler.Drag.prototype.initialize.apply(this,
[control, callbacks, options]); [control, callbacks, options]);
this.options = (options) ? options : {}; this.options = (options) ? options : {};
}, },
@@ -166,7 +166,7 @@ OpenLayers.Handler.RegularPolygon = OpenLayers.Class(OpenLayers.Handler.Drag, {
*/ */
activate: function() { activate: function() {
var activated = false; var activated = false;
if(OpenLayers.Handler.prototype.activate.apply(this, arguments)) { if(OpenLayers.Handler.Drag.prototype.activate.apply(this, arguments)) {
// create temporary vector layer for rendering geometry sketch // create temporary vector layer for rendering geometry sketch
var options = OpenLayers.Util.extend({ var options = OpenLayers.Util.extend({
displayInLayerSwitcher: false, displayInLayerSwitcher: false,