Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
can.Component events registered twice in 2.2.x #1778
I've made a fiddle using the code below. I'm using a custom processor here, just to be able to hook into the click handler. In my private setting I've tested it by adding a log message to the basic processor in can.control.
If you run the fiddle you can see in the console that the click processor is called twice.
This problem was introduced in 2.2.0, 2.1.4 is working as expected.
This is due to the fix provided for: #1422
Specifically the re-binding on line: https://github.com/bitovi/canjs/blob/c3b340422e4b3584b44e9f6f9940331c6b1e6d94/component/component.js#L272
Unsure what the impact would be of having a conditional rebind vs just rebinding.