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

Mods as array of strings #80

Closed
EAndreyF opened this issue Oct 1, 2016 · 1 comment
Closed

Mods as array of strings #80

EAndreyF opened this issue Oct 1, 2016 · 1 comment

Comments

@EAndreyF
Copy link

EAndreyF commented Oct 1, 2016

{
    "shouldDeps": [
        {
            "block": "block",
            "mods": [
                "mod-1",
                "mod-2"
            ]
        },
        {
            "block": "block",
            "elem": "elem",
            "mods": [
                "mod-1",
                "mod-2"
            ]
        }
    ]
}

Преобразуется в

[
    {
        "block": "block"
    },
    {
        "block": "block",
        "mod": "0",
        "val": true
    },
    {
        "block": "block",
        "mod": "1",
        "val": true
    },
    {
        "block": "block",
        "elem": "elem"
    },
    {
        "block": "block",
        "elem": "elem",
        "mod": "0",
        "val": true
    },
    {
        "block": "block",
        "elem": "elem",
        "mod": "1",
        "val": true
    },
    {
        "block": "block",
        "mod": "0",
        "val": "mod-1"
    },
    {
        "block": "block",
        "mod": "1",
        "val": "mod-2"
    },
    {
        "block": "block",
        "elem": "elem",
        "mod": "0",
        "val": "mod-1"
    },
    {
        "block": "block",
        "elem": "elem",
        "mod": "1",
        "val": "mod-2"
    }
]
@qfox
Copy link
Contributor

qfox commented Oct 2, 2016

Closed via bem-sdk-archive/bem-decl#66

@qfox qfox closed this as completed Oct 11, 2016
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

2 participants