Module: nagvis Branch: master Commit: 653b340fb690cfcd55c2fe74fa0be9afd9bbe8ad URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=653b340fb690cfcd55c2fe74fa0be9afd9bbe8ad
Author: Andriy Skuratov <[email protected]> Date: Tue Aug 25 10:48:54 2009 +0300 gmap:Now links are always loaded correctly. --- uifx/src/modules/gmap/data/LinksData.as | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/uifx/src/modules/gmap/data/LinksData.as b/uifx/src/modules/gmap/data/LinksData.as index 2a70202..12bdd95 100644 --- a/uifx/src/modules/gmap/data/LinksData.as +++ b/uifx/src/modules/gmap/data/LinksData.as @@ -43,14 +43,11 @@ package modules.gmap.data public function fill(data : Array) : void { - this.source = data; + for (var i:int = data.length - 1; i >= 0; i--) + if(!resolveLink(data[i] as Link)) + data.splice(i, 1); - for (var i:int = length - 1; i >= 0; i--) - { - var link:Link = getItemAt(i) as Link; - if (!resolveLink(link)) - removeItemAt(i); - } + this.source = data; } protected function resolveLink(link:Link):Boolean ------------------------------------------------------------------------------ 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
