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

Issue with prototype.js #7

Open
TheMoogster opened this issue Sep 15, 2015 · 0 comments
Open

Issue with prototype.js #7

TheMoogster opened this issue Sep 15, 2015 · 0 comments

Comments

@TheMoogster
Copy link

Hi

I have found a bug on websites running any version of prototype.js
The bug occurs in the Utils.size method were it returns 37 on an object with two "custom" properties (two cohorts).
(It should return 2, as it does on a website without prototype)

The fix is easy:
size: function(object) {
return Object.keys(object).length
},

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

No branches or pull requests

1 participant