WebReflection / hyperHTML

A Fast & Light Virtual DOM Alternative
ISC License
3.06k stars 112 forks source link

onconnecetd fires twice #363

Closed atirip closed 5 years ago

atirip commented 5 years ago

I have a hard time to understand why bind inside bind fires onconnected events twice.

https://codepen.io/anon/pen/YbaGqw?editors=0011

This is just extracted principle from bigger codebase and while I can easily rewrite this example, I realistically can not or want to change the approach in whole.

WebReflection commented 5 years ago

this bug is probably related to disconnected helper, but thanks for filing it, it's a good bug, with a reduced example.

WebReflection commented 5 years ago

as you can see by using https://unpkg.com/hyperhtml@latest this bug has been fixed 🎉

atirip commented 5 years ago

That is impressive. Thanks.