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

Removing the alteration of Array.prototype with a custom function #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Removing the alteration of Array.prototype with a custom function #57

wants to merge 1 commit into from

Conversation

fidian
Copy link

@fidian fidian commented Sep 23, 2013

When iterating over Array objects with a "for (propName in objectName)" syntax, this extra _indexOf method shows up. While not a problem for most code, I have had problems with other plugins that iterate over Arrays without checking their length.

In addition to submitting pull requests to fix that other code, I'm also trying to help avoid the problems that this plugin might have with the rest of the world.

@FelixSchwarz
Copy link

agree completely. I think nowadays it's common consensus that JS prototypes should not be touched by libraries.

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.

2 participants