[fusion-trac] #399: Fix The GetParent() function

Fusion trac_fusion at osgeo.org
Tue Jul 13 22:26:22 EDT 2010


#399: Fix The GetParent() function
-----------------------+----------------------------------------------------
   Reporter:  hubu     |       Owner:  hubu  
       Type:  defect   |      Status:  new   
   Priority:  P2       |   Milestone:  Future
  Component:  Widgets  |     Version:  1.1.1 
   Severity:  Major    |    Keywords:        
External_id:           |       State:  New   
    Browser:  All      |          Os:  All   
-----------------------+----------------------------------------------------

Comment(by hubu):

 In MapGuideViewerAPI.js, there is a function GetFusionWidget(). The
 function is defined like this:
 function GetFusionWindow() {
     var curWindow = window;
     while (!curWindow.Fusion) {
         if (curWindow.parent && curWindow != curWindow.parent) {
             curWindow = curWindow.parent;
         } else if(curWindow.opener) {
             curWindow = curWindow.opener;
         } else {
             alert('Could not find Fusion instance');
             break;
         }
     }
     return curWindow;
 }

 I think this function is already correct, no need to change it.

 After search on the whole source tree, I didn't find any other place need
 change as well.

-- 
Ticket URL: <http://trac.osgeo.org/fusion/ticket/399#comment:2>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.


More information about the fusion-trac mailing list