Currently, setting the element of a IUIBase will not work correctly because the flexjs_wrapper is not set. This makes it error prone when there’s a need to work with the underlying DOM elements for HTML output.
I cannot think of a reason why the wrapper should not be set when calling the element setter. Instead of setting the flexjs_wrapper in createElement(), it seems to me that it should be set in the element setter in HTMLElementWrapper. Anyone have a reason not to do this? Harbs