DescriptionRFC: Add common named params to all Element constructors
This is one of the options we discussed to streamline element construction.
E.g., the following (fairly common pattern):
new Element.html('<div class="back-arrow button"></div>');
becomes:
new DivElement(classes: ['back-arrow', 'button']);
See the test for a few more examples. Improvement?
Patch Set 1 #
Messages
Total messages: 4 (0 generated)
|