changing 'minor' parameter name to 'dragging' for consistency

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1538 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-10-03 04:35:04 +00:00
parent 97418cb70b
commit 0adeb2670d
11 changed files with 28 additions and 28 deletions

View File

@@ -575,10 +575,10 @@ OpenLayers.Map.prototype = {
/**
* @param {OpenLayers.LonLat} lonlat
* @param {int} zoom
* @param {Boolean} minor Specifies whether or not to
* trigger movestart/end events
* @param {Boolean} dragging Specifies whether or not to
* trigger movestart/end events
*/
setCenter: function (lonlat, zoom, minor) {
setCenter: function (lonlat, zoom, dragging) {
var zoomChanged = (this.isValidZoomLevel(zoom)) &&
(zoom != this.getZoom());
@@ -587,9 +587,9 @@ OpenLayers.Map.prototype = {
// if neither center nor zoom will change, no need to do anything
if (zoomChanged || centerChanged || !minor) {
if (zoomChanged || centerChanged || !dragging) {
if (!minor) { this.events.triggerEvent("movestart"); }
if (!dragging) { this.events.triggerEvent("movestart"); }
if (centerChanged) {
if ((!zoomChanged) && (this.center)) {
@@ -621,7 +621,7 @@ OpenLayers.Map.prototype = {
for (var i = 0; i < this.layers.length; i++) {
var layer = this.layers[i];
if (layer.getVisibility()) {
layer.moveTo(bounds, zoomChanged, minor);
layer.moveTo(bounds, zoomChanged, dragging);
}
}
@@ -631,7 +631,7 @@ OpenLayers.Map.prototype = {
}
// even if nothing was done, we want to notify of this
if (!minor) { this.events.triggerEvent("moveend"); }
if (!dragging) { this.events.triggerEvent("moveend"); }
},
/** This function takes care to recenter the layerContainerDiv