coding style: add braces around test, use {} instead of new Array(), remove unused variable
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10473 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -134,7 +134,7 @@ OpenLayers.Handler.RegularPolygon = OpenLayers.Class(OpenLayers.Handler.Drag, {
|
||||
|
||||
OpenLayers.Handler.prototype.initialize.apply(this,
|
||||
[control, callbacks, options]);
|
||||
this.options = (options) ? options : new Object();
|
||||
this.options = (options) ? options : {};
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -318,7 +318,7 @@ OpenLayers.Handler.RegularPolygon = OpenLayers.Class(OpenLayers.Handler.Drag, {
|
||||
* Modify the polygon geometry in place.
|
||||
*/
|
||||
modifyGeometry: function() {
|
||||
var angle, dx, dy, point;
|
||||
var angle, point;
|
||||
var ring = this.feature.geometry.components[0];
|
||||
// if the number of sides ever changes, create a new geometry
|
||||
if(ring.components.length != (this.sides + 1)) {
|
||||
|
||||
Reference in New Issue
Block a user