child set to null in children structure should not break the composite execution #129

Closed
caridy opened this Issue Apr 13, 2012 · 0 comments

Projects

None yet

1 participant

Collaborator
caridy commented Apr 13, 2012

Sometimes, intentionally, I want to disable a particular child depending on the current context, in which case, I should be able to set the child to null. Here is an example of a dynamic children structure based on the context.

    {
        "settings": [ "master" ],
        "config": {
            "children": {
                "header": {
                    "base": "header"
                },
                "footer": {
                    "base": "footer"
                },
                "body": {
                    "base": "body"
                }
            }
        }
    },
    {
        "settings": [ "device:iphone" ],
        "config": {
            "children": {
                "header": null
            }
        }
    }
]```

patch on its way.
@caridy caridy added a commit to caridy/mojito that referenced this issue Apr 13, 2012
@caridy caridy ref #129 disabling a child mojit by setting it to null in the childre…
…n structure. Including tests.
5b6a2bc
@caridy caridy closed this Jan 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment