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

Change directive() function to wrap the entire directive factory. #562

Merged
merged 1 commit into from
Oct 15, 2018

Conversation

justinfagnani
Copy link
Collaborator

This change lets us abstract over directive arguments in the future if we need to, which might offer a way to build directive state management into lit's core, rather than forcing directives to use WeakMaps keyed off Parts.

In the meantime, it's a no-op in terms of functionality, though I think it looks a marginally nicer to write directives.

This is a smaller change than converting directives to classes, which I did in https://github.com/Polymer/lit-html/compare/directives

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

Successfully merging this pull request may close these issues.

3 participants