Don't try to access the source collection directly, instead use the getCollection...
authorAndy Allan <andy@gravitystorm.co.uk>
Sun, 25 Mar 2012 10:26:59 +0000 (11:26 +0100)
committerAndy Allan <andy@gravitystorm.co.uk>
Sun, 25 Mar 2012 10:26:59 +0000 (11:26 +0100)
net/systemeD/potlatch2/BackgroundDialog.mxml
net/systemeD/potlatch2/collections/Imagery.as

index cf8e64d..e92f1b1 100644 (file)
@@ -55,7 +55,7 @@
                this.title=title;
                this.menu=menu;
                collection=source;
-               dataCollection=new ArrayCollection(source.collection);
+               dataCollection = source.getCollection();
         PopUpManager.addPopUp(this, Application(FlexGlobals.topLevelApplication), true);
         PopUpManager.centerPopUp(this);
         this.addEventListener(CloseEvent.CLOSE, backgroundDialog_close);
index f8abb7c..3afc0b4 100644 (file)
@@ -249,6 +249,11 @@ package net.systemeD.potlatch2.collections {
                        if (_selected.attribution) positionAttribution();
                }
 
+        [Bindable(event="collection_changed")]
+        public function getCollection():ArrayCollection {
+            return new ArrayCollection(collection);
+        }
+
                [Bindable(event="collection_changed")]
                public function getAvailableImagery():ArrayCollection {
                        var available:Array=[];