Confusing use of '!'.
This commit is contained in:
@@ -255,8 +255,7 @@ OpenLayers.Layer.EventPane = OpenLayers.Class(OpenLayers.Layer, {
|
||||
var moOldZoom = this.getMapObjectZoom();
|
||||
var oldZoom= this.getOLZoomFromMapObjectZoom(moOldZoom);
|
||||
|
||||
if ( !(newCenter.equals(oldCenter)) ||
|
||||
!(newZoom == oldZoom) ) {
|
||||
if (!(newCenter.equals(oldCenter)) || newZoom != oldZoom) {
|
||||
|
||||
if (!zoomChanged && oldCenter && this.dragPanMapObject &&
|
||||
this.smoothDragPan) {
|
||||
|
||||
Reference in New Issue
Block a user