Skip to content

Issue with prototype.js #7

@TheMoogster

Description

@TheMoogster

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
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions