Changeset 6412
- Timestamp:
- 02/29/08 01:16:01 (11 months ago)
- Files:
-
- sandbox/tschaub/events/lib/OpenLayers/Control.js (modified) (1 diff)
- sandbox/tschaub/events/lib/OpenLayers/Layer.js (modified) (1 diff)
- sandbox/tschaub/events/lib/OpenLayers/Map.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/tschaub/events/lib/OpenLayers/Control.js
r6276 r6412 165 165 166 166 this.events = new OpenLayers.Events(this, null, this.EVENT_TYPES); 167 if(t ypeof this.eventListeners == "object") {167 if(this.eventListeners instanceof Object) { 168 168 this.events.on(this.eventListeners); 169 169 } sandbox/tschaub/events/lib/OpenLayers/Layer.js
r6378 r6412 282 282 this.events = new OpenLayers.Events(this, this.div, 283 283 this.EVENT_TYPES); 284 if(t ypeof this.eventListeners == "object") {284 if(this.eventListeners instanceof Object) { 285 285 this.events.on(this.eventListeners); 286 286 } sandbox/tschaub/events/lib/OpenLayers/Map.js
r6409 r6412 336 336 337 337 /** 338 * Property: panMethod 339 * {Function} The Easing function to be used for tweening. Default is 340 * OpenLayers.Easing.Expo.easeOut. Setting this to 'null' turns off 341 * animated panning. 342 */ 343 panMethod: OpenLayers.Easing.Expo.easeOut, 344 345 /** 338 346 * Constructor: OpenLayers.Map 339 347 * Constructor for a new OpenLayers.Map instance. … … 399 407 this.fallThrough); 400 408 this.updateSize(); 401 if(t ypeof this.eventListeners == "object") {409 if(this.eventListeners instanceof Object) { 402 410 this.events.on(this.eventListeners); 403 411 } … … 1330 1338 */ 1331 1339 panTo: function(lonlat) { 1332 if (this. getExtent().containsLonLat(lonlat)) {1340 if (this.panMethod && this.getExtent().containsLonLat(lonlat)) { 1333 1341 if (!this.panTween) { 1334 this.panTween = new OpenLayers.Tween( OpenLayers.Easing.Expo.easeOut);1342 this.panTween = new OpenLayers.Tween(this.panMethod); 1335 1343 } 1336 1344 var center = this.getCenter();
