Fixes #7611: BorderContainer: does not layout form widgets.
Fixes #7611: BorderContainer: does not layout form widgets.

Refactor _setStateClass() to be resilient when classes are added to domNode after the widget has been initialized.  This is safer but slower than the old version, which saved the node's original class.

For fear of performance issues it's only writing into domNode.className once; code would have been shorter but possibly slower if it made many calls to addClass() and removeClass().

!strict


git-svn-id: 674a2d6b1e32e53f607eb824547723f32280967e@15163 560b804f-0ae3-0310-86f3-f6aa0a117693

Sam-Cummins/delite,Sam-Cummins/delite,harbalk/delite,harbalk/delite,kitsonk/delite,kitsonk/delite