Skip to content

___class_name ignored in nested objects #71

Description

@bkdotcom

this row

[
    [
        "nested object",
        {
            "___class_name": "MonsterClass",
            "subObj": {
                "___class_name": "BabyClass",
                "dingle": "berry"
            },
            "foo": "bar"
        }
    ],
    null,
    ""
],

subObj shows up as a regular 'ol javascript object with ___class_name as a property

live demo

It's unclear if this is expected behavior... perhaps it is

Note the special property ___class_name. This should be added to all objects that respresent(sic) a specific class. This allows the extension to log the class name separately when it logs your data to the console. Also for nested objects it makes it easy to see what type they are since it will float to the top of the properties when they are listed alphabetically.

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