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

___class_name ignored in nested objects #71

Open
bkdotcom opened this issue Jun 23, 2017 · 0 comments
Open

___class_name ignored in nested objects #71

bkdotcom opened this issue Jun 23, 2017 · 0 comments

Comments

@bkdotcom
Copy link

bkdotcom commented Jun 23, 2017

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.

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