Changeset 140
- Timestamp:
- 02/28/07 15:22:59 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/as2/lib/com/modestmaps/geo/Map.as
r138 r140 321 321 { 322 322 //grid.log('+ '+marker.toString()); 323 dispatchEvent({t arget: this, type: EVENT_MARKER_ENTERS, marker: marker});323 dispatchEvent({type: EVENT_MARKER_ENTERS, marker: marker}); 324 324 } 325 325 … … 330 330 { 331 331 //grid.log('- '+marker.toString()); 332 dispatchEvent({t arget: this, type: EVENT_MARKER_LEAVES, marker: marker});332 dispatchEvent({type: EVENT_MARKER_LEAVES, marker: marker}); 333 333 } 334 334 … … 339 339 { 340 340 //grid.log('Leaving zoom level '+zoomLevel+'...'); 341 dispatchEvent({t arget: this, type: EVENT_LEAVE_ZOOMLEVEL, level: zoomLevel});341 dispatchEvent({type: EVENT_LEAVE_ZOOMLEVEL, level: zoomLevel}); 342 342 } 343 343 … … 348 348 { 349 349 //grid.log('...Entering zoom level '+zoomLevel); 350 dispatchEvent({t arget: this, type: EVENT_ENTER_ZOOMLEVEL, level: zoomLevel});350 dispatchEvent({type: EVENT_ENTER_ZOOMLEVEL, level: zoomLevel}); 351 351 } 352 352 … … 357 357 { 358 358 //grid.log('Starting drag...'); 359 dispatchEvent({t arget: this, type: EVENT_START_PANNING});359 dispatchEvent({type: EVENT_START_PANNING}); 360 360 } 361 361 … … 366 366 { 367 367 //grid.log('...Stopping drag'); 368 dispatchEvent({t arget: this, type: EVENT_STOP_PANNING});368 dispatchEvent({type: EVENT_STOP_PANNING}); 369 369 } 370 370 } trunk/as2/lib/com/modestmaps/mapproviders/AbstractMapProvider.as
r122 r140 26 26 private var __bottomRightInLimit:Coordinate; 27 27 28 // tracks if we're set up to broadcast events29 private static var _dispatcherInited : Boolean = false;28 // decorate the AbstractMapProvider prototype with event dispatching methods 29 private static var _dispatcherInited = EventDispatcher.initialize(AbstractMapProvider.prototype); 30 30 31 31 /* … … 34 34 private function AbstractMapProvider() 35 35 { 36 // only set up broadcasting once, in the prototype37 if ( !_dispatcherInited )38 {39 EventDispatcher.initialize( this.__proto__ );40 _dispatcherInited = true;41 }42 43 36 __requestThrottler = RequestThrottler.getInstance(); 44 37 trunk/as2/lib/com/modestmaps/mapproviders/IMapProvider.as
r121 r140 7 7 interface com.modestmaps.mapproviders.IMapProvider 8 8 { 9 public function paint( clip : MovieClip, coord : Coordinate ) :Void;9 public function paint(clip:MovieClip, coord:Coordinate):Void; 10 10 11 11 /* … … 30 30 public function geometry():String; 31 31 32 public function toString() :String;32 public function toString():String; 33 33 34 34 /*
