On Jul 16, 2013 1:05 AM, "Alex Harui" <aha...@adobe.com> wrote: > > OK, pushed a bunch of changes to hopefully make it more easy/clear when creating components. > > I added IBeadView, IBeadController and IBeadLayout interfaces to go along with the already existing IBeadModel. The CSS makes it more clear now as to what parts make up the component. > > I renamed view beads to end with "View". > > Lots of view interfaces were eliminated. Only interactive components that have a separate controller will need a custom interface to describe the contract with the view. Others can just use IBeadView. > > Removed initModel and initSkin methods. The lifecycle is now much simpler: instantiate, set properties and beads then add to the display list. We're still using child.addToParent(parent), but I am going to experiment next with changing over to parent.addElement(child).
Any particular reason why? I was beginning to get a hang of the child.addToParent() way. > > Thanks, > -Alex > > From: Alex Harui <aha...@adobe.com<mailto:aha...@adobe.com>> > Date: Friday, July 12, 2013 11:19 AM > To: "dev@flex.apache.org<mailto:dev@flex.apache.org>" <dev@flex.apache.org <mailto:dev@flex.apache.org>> > Subject: [FlexJS] Doing some refactoring > > FYI, > > I'm doing some refactoring in the FlexJS code to try to simplify a few things so life will be easier from here on out. The main goal is to reduce the number of calls when creating components in AS. > > -Alex