shama / on-load

On load/unload events for DOM elements using a MutationObserver
113 stars 19 forks source link

fix id clashes #40

Closed mafintosh closed 5 years ago

mafintosh commented 5 years ago

This fixes a bug where if for some reason you have two on-loads in your dependency tree, then the timing based id can clash if the two versions are loading in the same millisecond (actual bug we hit).

bcomnes commented 5 years ago

📦 on-load@4.0.2