[OpenLayers-Commits] r12120 - trunk/openlayers/lib/OpenLayers/Handler

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Tue Jun 21 16:53:55 EDT 2011


Author: ahocevar
Date: 2011-06-21 13:53:53 -0700 (Tue, 21 Jun 2011)
New Revision: 12120

Modified:
   trunk/openlayers/lib/OpenLayers/Handler/RegularPolygon.js
Log:
Using the correct superclass. Thanks jorix for investigating and fixing this. p=jorix (closes #3373)

Modified: trunk/openlayers/lib/OpenLayers/Handler/RegularPolygon.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Handler/RegularPolygon.js	2011-06-21 16:50:50 UTC (rev 12119)
+++ trunk/openlayers/lib/OpenLayers/Handler/RegularPolygon.js	2011-06-21 20:53:53 UTC (rev 12120)
@@ -16,7 +16,7 @@
  *     instance with the <OpenLayers.Handler.RegularPolygon> constructor.
  * 
  * Inherits from:
- *  - <OpenLayers.Handler>
+ *  - <OpenLayers.Handler.Drag>
  */
 OpenLayers.Handler.RegularPolygon = OpenLayers.Class(OpenLayers.Handler.Drag, {
     
@@ -141,7 +141,7 @@
             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]);
         this.options = (options) ? options : {};
     },
@@ -166,7 +166,7 @@
      */
     activate: function() {
         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
             var options = OpenLayers.Util.extend({
                 displayInLayerSwitcher: false,



More information about the Commits mailing list