GoogleChromeLabs / ProjectVisBug

FireBug for designers › Edit any webpage, in any state https://a.nerdy.dev/gimme-visbug
https://visbug.web.app
Apache License 2.0
5.42k stars 285 forks source link

fix event binding #520

Closed zeaccs closed 3 years ago

zeaccs commented 3 years ago

since .bind() creates a new function, the current add and remove listener function has a different reference.

This PR moves the bind function into the constructor and uses that reference.

argyleink commented 3 years ago

trying to figure out why the tests didnt run..

argyleink commented 3 years ago

image