Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

wire/builder/cram interprets any property called "create" as a factory #148

Open
unscriptable opened this issue Feb 20, 2014 · 1 comment

Comments

@unscriptable
Copy link
Member

If any component in a spec has a property named "create" and that property is used as the key in a facet, wire/builder/cram thinks the value is a module and attempts to read it off the disk.

    controller: {
        create: 'controller',
        properties: {
            create: { $ref: 'foo' }
        },
        afterRejecting: {
            create: 'showError.add'
        },
    }

cram will look for modules named "{ $ref: 'foo' }" and "showError.add". :(

@briancavalier
Copy link
Member

Yes, and ugh. I don't know yet what we can do about this, but we need to figure something out.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants