You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Going through SET_UP_BEAN does not add the view to the wired views map, so when it is removed from stage it will not be automatically torn down because it's not in wiredViews.
Possible fix in handleBeanEvent():
case BeanEvent.SET_UP_BEAN:if( existingBean )
if( existingBean.initialized )
logger.warn( "{0} is already set up as a bean. Ignoring SET_UP_BEAN request.", event.source.toString() );elseif( event.sourceisDisplayObject&& event.sourceis ISetUpValidator )
SwizManager.setUp( DisplayObject( event.source) );else
setUpBean( existingBean );else
setUpBean( constructBean( event.source, event.beanName, swiz.domain ) );break;
Which would seem to work since SwizManager.setUp() won't do anything with the view if it is already in the wired views list, and assuming that a DisplayObject implementing ISetUpValidator is infered to be a view that the developer is attempting to manually set up themselves.
The text was updated successfully, but these errors were encountered:
Migrated from SWIZ-60
Going through SET_UP_BEAN does not add the view to the wired views map, so when it is removed from stage it will not be automatically torn down because it's not in wiredViews.
Possible fix in handleBeanEvent():
Which would seem to work since SwizManager.setUp() won't do anything with the view if it is already in the wired views list, and assuming that a DisplayObject implementing ISetUpValidator is infered to be a view that the developer is attempting to manually set up themselves.
The text was updated successfully, but these errors were encountered: