Skip to content

v2.1.2: addElements and addComponents methods

Compare
Choose a tag to compare
@hammzj hammzj released this 25 Apr 14:03
· 10 commits to main since this release
06ac465

What's Changed

Full Changelog: v2.1.1...v2.1.2

Add this.addElements and this.addComponents/this.addNestedComponents

These methods will help remove warnings around declaring this.elements or this.components before initialization. Call these methods in the constructor and assign an object of element selectors or nested component objects, respectively.

Note: In TypeScript, you will need to add public elements: Elements and public components: NestedComponents in order to use them outside of the class!

Removed lodash

Make this a bit more lightweight. It's not needed.