Skip to content

Releases: WizUI/WuiDom

v0.7.2

26 Jan 09:09
Compare
Choose a tag to compare

How many children do you have?

The method getChildCount has been added to get the number of children a WuiDom may have.
Simpler and faster than going through getChildren().length.

v0.7.1

26 Jan 09:09
Compare
Choose a tag to compare

NPM Dependencies update

Updated events to 1.1.0

v0.7.0

26 Aug 01:07
Compare
Choose a tag to compare

Let's meet the world

WuiDom finally get released under WizUI and have its package.json file to reach even more build systems.

v0.6.2

07 Jul 08:29
Compare
Choose a tag to compare

Dependencies update

Updated Wizcorp/events to v0.1.3

v0.6.1

24 Jun 01:56
Compare
Choose a tag to compare

Let me replace your emptiness

The method replaceClassNames allows having empty strings without crashing.

v0.6.0

22 Jun 04:27
Compare
Choose a tag to compare

Kill them all, but fast

Improvement has been made on the internal method _destroyChildren which should make
the call of clearContent and destroy faster to execute.

Getting so classy

Using now the API of classList from DOMTokenList for every class name operation.
We are using a shim to make sure to be compatible with older browser.
⚠️ toggleClassNames is now deprecated in favor of toggleClassName

v0.5.3

13 Apr 03:29
Compare
Choose a tag to compare

toggle with undefined style

The toggleClassNames method was partially broken.
When second arguments, shouldAdd, is undefined it will trigger a real toggle, which is now fixed.

v0.5.2

13 Apr 03:29
Compare
Choose a tag to compare

toggle the display and tell me what

The toggleDisplay now returns the status of the display.
Also fixed a bug where passing an undefined variable will always toggle on.

v0.5.1

27 Nov 02:05
Compare
Choose a tag to compare

Pimp my style

A new method getComputedStyles allows to retrieve multiple computed style properties in one call.

Now you see me

The method isVisible can now go up the tree of ancestor if it's really visible or not.

v0.5.0

04 Sep 06:14
Compare
Choose a tag to compare

Assign no more

⚠️ The assign method is now deprecated.
Since v0.2.0 you can assign from the constructor.
It's time to move on.

Back to the source

The use of setting a function and timer for setText and setHtml disappeared long time ago.
Perhaps because of the arrival of Tomes and bindToTome.
This is why from now on, those 2 methods will do simply what they have to do.

Dom query nothing

⚠️ The methods query and queryAll has been removed.
Those was returning a Dom which seems useless since we wanna work WuiDoms

Let's change your class

A new method called toggleClassNames has been added for the good of avoiding silly if/else logic.
Check the API in the readme for more info.

Ladybug is cute but problematic

  • removeChild would accept only string as an ID, it is now more open to numbers.
  • insertChildBefore were crashing when the second argument was not provided.
  • replaceClassNames were keeping adding class names from the addList argument even if already present.