coding style: declare new arrays using []
This commit is contained in:
@@ -107,11 +107,8 @@ OpenLayers.Popup.Anchored =
|
||||
moveTo: function(px) {
|
||||
var oldRelativePosition = this.relativePosition;
|
||||
this.relativePosition = this.calculateRelativePosition(px);
|
||||
|
||||
var newPx = this.calculateNewPx(px);
|
||||
|
||||
var newArguments = new Array(newPx);
|
||||
OpenLayers.Popup.prototype.moveTo.apply(this, newArguments);
|
||||
|
||||
OpenLayers.Popup.prototype.moveTo.call(this, this.calculateNewPx(px));
|
||||
|
||||
//if this move has caused the popup to change its relative position,
|
||||
// we need to make the appropriate cosmetic changes.
|
||||
|
||||
Reference in New Issue
Block a user