Module: nagvis Branch: master Commit: a4c651cd50fefd4b321fc8df6823250040617a51 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=a4c651cd50fefd4b321fc8df6823250040617a51
Author: Roman Kyrylych <[email protected]> Date: Tue Aug 18 18:05:44 2009 +0300 gmap; Made Link dialog autoupdate on link line click Signed-off-by: Roman Kyrylych <[email protected]> --- uifx/src/modules/gmap/data/CurrentLink.as | 14 ++++---------- uifx/src/modules/gmap/events/LinkEvent.as | 2 +- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/uifx/src/modules/gmap/data/CurrentLink.as b/uifx/src/modules/gmap/data/CurrentLink.as index 95d79c7..a1ea89f 100644 --- a/uifx/src/modules/gmap/data/CurrentLink.as +++ b/uifx/src/modules/gmap/data/CurrentLink.as @@ -25,18 +25,12 @@ package modules.gmap.data public class CurrentLink { - private var _link : Link; + [Bindable] public var link : Link; - [Bindable] - public function set link(value : Link) : void + public function update(link : Link) : void { - if(_link !== value) - _link = value; - } - - public function get link() : Link - { - return _link; + if (this.link !== link) + this.link = link; } } } diff --git a/uifx/src/modules/gmap/events/LinkEvent.as b/uifx/src/modules/gmap/events/LinkEvent.as index 69e7720..168a9fd 100644 --- a/uifx/src/modules/gmap/events/LinkEvent.as +++ b/uifx/src/modules/gmap/events/LinkEvent.as @@ -36,7 +36,7 @@ package modules.gmap.events public var link : Link; - public function LinkEvent(type : String, location : Link = null, bubbles : Boolean = true, cancelable : Boolean = false) + public function LinkEvent(type : String, link : Link = null, bubbles : Boolean = true, cancelable : Boolean = false) { super(type, bubbles, cancelable); this.link = link; ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
