Skip to content

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

Open
fidian wants to merge 1 commit intoglad:masterfrom
fidian:array-index-of
Open

Removing the alteration of Array.prototype with a custom function#57
fidian wants to merge 1 commit intoglad:masterfrom
fidian:array-index-of

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

Comments