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

Use default noop function for unregistered tags. #59

Merged
merged 1 commit into from
Sep 29, 2017

Conversation

Macrofig
Copy link
Contributor

When a tag handler is requested but the tag does not exist, an anonymous noop function is returned. It should instead return the new default noop function. This is needed for consuming packages to check if the requested tag does not exist.

  • Updated main to export a default noop
  • Updated main to return default noop when requested tag does not exist
  • Updated tests to check use cases

Needed for this issue: canjs/can-view-import#2

When a tag handler is requested but the tag does not exist, an anonymous noop function is returned. It should instead return the new default noop function. This is needed for consuming packages to check if the requested tag does not exist.

- Updated main to export a default noop
- Updated main to return default noop when requested tag does not exist
- Updated tests to check use cases
@Macrofig Macrofig merged commit df54039 into master Sep 29, 2017
@Macrofig Macrofig deleted the 2-use-default-noop branch September 29, 2017 13:13
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.

2 participants