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

Upstream modifier tests #1271

Merged
merged 1 commit into from
Feb 17, 2021
Merged

Upstream modifier tests #1271

merged 1 commit into from
Feb 17, 2021

Conversation

pzuraq
Copy link
Member

@pzuraq pzuraq commented Feb 16, 2021

Upstreams modifier tests from Ember, fixing some bugs with
Object.assign being used when it shouldn't have been. Also, converts
the types for modifiers to use Element instead of SimpleElement,
since the current assumption and behavior is that modifiers will only
run in interactive environments with a real DOM.

Upstreams modifier tests from Ember, fixing some bugs with
`Object.assign` being used when it shouldn't have been. Also, converts
the types for modifiers to use `Element` instead of `SimpleElement`,
since the current assumption and behavior is that modifiers will only
run in interactive environments with a real DOM.
@pzuraq pzuraq force-pushed the upstream-modifier-manager-tests branch from 8d9f2b7 to 2c0afdd Compare February 16, 2021 22:24
@@ -23,7 +23,7 @@ export interface ModifierCapabilities extends Capabilities {
export interface ModifierManager<ModifierStateBucket> {
capabilities: ModifierCapabilities;
createModifier(factory: unknown, args: Arguments): ModifierStateBucket;
installModifier(instance: ModifierStateBucket, element: SimpleElement, args: Arguments): void;
installModifier(instance: ModifierStateBucket, element: Element, args: Arguments): void;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, I personally consider this a non-breaking change. SimpleElement is a strict subset of the Element API.

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

Successfully merging this pull request may close these issues.

2 participants