8 Commits

Author SHA1 Message Date
Jonathan Garbee
c4c8427c61 Fixed downgrading to always remove internal references. 2015-12-19 12:59:08 -05:00
Douglas
13f8653953 Change in the function upgradElementsInternal to enable the upgrade of child elements created by parent element's upgrade, like RippleContainerElement in Checkbox. The problem was happening when the element was created dynamically. 2015-08-29 00:49:12 -03:00
Xingchen Hong
384315ca64 Fixed test case 'should upgrade a single component to an element by using its CSS classes' to reveal a bug in the current upgradeElement caused by dataUpgraded not being correctly updated. Added test case 'should upgrade a single component to an element' to reveal a bug in the current upgradeElement caused by unreliably checking of upgraded class.
Added `getUpgradedListOfElement_(element)` for getting a list of names of the upgraded classes.
Made `isElementUpgraded_(element, jsClass)` more reliable.
In `upgradeElementInternal(element, optJsClass)`:
* Added argument verification.
* Improved class search efficiency when jsClass is omitted.
* Made `dataUpgraded` update correctly. (Closes #1115)
2015-07-20 21:53:46 +09:00
Jonathan Garbee
9799f6ccf2 Expanded componentHandler unit tests. Removed uneeded comments. 2015-07-16 09:52:21 -04:00
Xingchen Hong
260c88f1bb Add upgradeElements method to componentHandler. 2015-07-16 09:46:59 -04:00
Jonathan Garbee
e3d5f5436d Finish off tests (Closes #922) 2015-07-16 09:46:58 -04:00
Nicolas Garnier
ee60fcea61 Testing upgrading an element using its CSS classes. 2015-07-16 09:46:58 -04:00
Jonathan Garbee
42955b1f43 Initial test for component handler. 2015-07-16 09:46:58 -04:00