Navigation Menu

Skip to content

Commit

Permalink
Container now will immidiately respond to content.addItem method. Pre…
Browse files Browse the repository at this point in the history
…viously it worked only after assigning an array to the content property.
  • Loading branch information
vrobel committed Jul 22, 2011
1 parent 0aac7b0 commit 8e94ca2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/reflex/containers/Container.as
Expand Up @@ -78,6 +78,8 @@ package reflex.containers
//_layout = new BasicLayout();
}
_content = new SimpleCollection();
_content.addEventListener(CollectionEvent.COLLECTION_CHANGE, onChildrenChange);

addEventListener(Event.ADDED, onAdded, false, 0, true);
addEventListener(MEASURE, onMeasure, false, 0, true);
addEventListener(LAYOUT, onLayout, false, 0, true);
Expand Down

0 comments on commit 8e94ca2

Please sign in to comment.