Skip to content

Fix jQuery #12606: stop cache keys from conflicting with Object.prototype properties#157

Closed
gibson042 wants to merge 3 commits intojquery:masterfrom
gibson042:jquery_12606
Closed

Fix jQuery #12606: stop cache keys from conflicting with Object.prototype properties#157
gibson042 wants to merge 3 commits intojquery:masterfrom
gibson042:jquery_12606

Conversation

@gibson042
Copy link
Member

Net effect on jQuery master @ c3b1367f4c19abf12eadc1460a37dc34ae765e1b

    265237       (+33)  dist/jquery.js                                         
     93463       (+25)  dist/jquery.min.js                                     
     33437        (+6)  dist/jquery.min.js.gz

@timmywil
Copy link
Member

timmywil commented Oct 1, 2012

We should rethink the structure of the cache before adding strange keys like this. I don't understand the problem yet though.

@timmywil
Copy link
Member

timmywil commented Oct 1, 2012

Ok, I see now. That's kinda funny.

@dmethvin
Copy link
Member

dmethvin commented Oct 1, 2012

Yeah, came in expecting a boring hasOwnProperty, saw a great show, and left with a smile on my face.

@timmywil timmywil closed this in 145a26d Oct 14, 2012
markelog pushed a commit to markelog/sizzle that referenced this pull request May 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants