Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preventing events like on:click from creating viewmodels on normal elements #541

Merged
merged 1 commit into from
Jul 16, 2019

Conversation

phillipskevin
Copy link
Contributor

This checks the can.viewModel symbol instead of using can-view-model so that ViewModels are not created on normal DOM elements when events happen. This also caches the Symbol everywhere it's used.

closes #540.

@phillipskevin phillipskevin merged commit 323c1b6 into master Jul 16, 2019
@phillipskevin phillipskevin deleted the dont-create-viewmodels branch July 16, 2019 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

on:click style events create viewmodels on elements
1 participant