I'll have to see what happens when these lines are removed. The Flash side nearly always has model and view beads to build the components but the JS side may not have a view bead since the element (i.e., <img>) is the view. Meaning, the Flash and JS versions aren't always symmetric. I'm not really sure why the JS side would need a view. It may be that I was experimenting with making both sides always follow the same pattern and just checked in that code accidentally.
Peter Ent Adobe Systems/Apache Flex Project On 9/12/16, 4:19 AM, "Harbs" <[email protected]> wrote: >The Image component has the following code which did not make a lot of >sense to me considering it¹s JS-only: > > model = new > ImageModel(); > > addBead(new > ImageView()); > >When trying to figure this out, we realized that this should be >instantiated in UIBase in a more generic fashion. Are we correct in >assuming that this is legacy code and should be removed? > >Harbs
