Closed phillipskevin closed 5 years ago
Events like on:click will create a viewModel when the event happens because can-view-model is being called here: https://github.com/canjs/can-stache-bindings/blob/b214428b2a4437f18b898f3255d40baa06e19056/can-stache-bindings.js#L554
on:click
can-view-model
This should check the Symbol instead so that extra SimpleMaps are not created as the viewmodel for normal DOM elements.
Events like
on:click
will create a viewModel when the event happens becausecan-view-model
is being called here: https://github.com/canjs/can-stache-bindings/blob/b214428b2a4437f18b898f3255d40baa06e19056/can-stache-bindings.js#L554This should check the Symbol instead so that extra SimpleMaps are not created as the viewmodel for normal DOM elements.