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

Functions globally defined when it shouldn't be #604

Merged
merged 2 commits into from
Dec 11, 2013

Conversation

matthewp
Copy link
Contributor

The functions updateList and teardownList are meant to be local variables in this context but are added to the window due to not being declared. Causes hard to track down issues when you have multiple lists being bound at the time same time.

@justinbmeyer
Copy link
Contributor

@matthewp can you add more details?

@matthewp
Copy link
Contributor Author

@justinbmeyer added an explanation.

This fixes a few instances where variables were being attached to the window that are meant to be used only locally.
daffl added a commit that referenced this pull request Dec 11, 2013
Functions defined without being declared.
@daffl daffl merged commit 5c87b08 into canjs:master Dec 11, 2013
daffl added a commit that referenced this pull request Dec 19, 2013
@daffl daffl mentioned this pull request Dec 19, 2013
daffl added a commit that referenced this pull request Dec 19, 2013
justinbmeyer added a commit that referenced this pull request Jan 23, 2014
andykant added a commit that referenced this pull request Jan 23, 2014
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.

None yet

3 participants