fix some bugs in feature selector, and awesome stuff
[potlatch2.git] / net / systemeD / halcyon / mapfeatures / MapFeatures.as
index 42859ccd9f19aff2a741bb7750485417434a247b..3d1c8f1c16e92d71a90ff2e959108bedd572e569 100644 (file)
@@ -40,12 +40,12 @@ package net.systemeD.halcyon.mapfeatures {
             
             _features = new Array();
             for each(var feature:XML in xml.feature) {
-                _features.push(new Feature(feature));
+                _features.push(new Feature(this, feature));
             }            
             _categories = new Array();
             for each(var catXML:XML in xml.category) {
                 if ( catXML.child("category").length() == 0 )
-                  _categories.push(new Category(this, catXML.@name, catXML.@id));
+                  _categories.push(new Category(this, catXML.@name, catXML.@id, _categories.length));
             }
             dispatchEvent(new Event("featuresLoaded"));
         }