Move to FlexGlobals.topLevelApplication
authorAndy Allan <andy@gravitystorm.co.uk>
Sat, 24 Mar 2012 11:53:36 +0000 (11:53 +0000)
committerAndy Allan <andy@gravitystorm.co.uk>
Sat, 24 Mar 2012 11:53:36 +0000 (11:53 +0000)
net/systemeD/potlatch2/history/HistoryDialog.mxml

index 5f41f87..5d0db1e 100644 (file)
@@ -45,6 +45,7 @@
 
     import mx.managers.PopUpManager;
     import mx.core.Application;
+    import mx.core.FlexGlobals;
     import mx.events.CloseEvent;
     import flash.events.Event;
     import com.adobe.utils.ArrayUtil;
@@ -71,7 +72,7 @@
     public function init(e:Entity):void {
         if (e == null) {return;}
 
-        PopUpManager.addPopUp(this, Application(Application.application), true);
+        PopUpManager.addPopUp(this, Application(FlexGlobals.topLevelApplication), true);
         PopUpManager.centerPopUp(this);
         this.addEventListener(CloseEvent.CLOSE, historyDialog_close);