Skip to content
This repository has been archived by the owner on Oct 12, 2020. It is now read-only.

Add capabilities support #92

Merged
merged 1 commit into from
Aug 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions addon/modifiers/ref.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Ember from 'ember';
import { set, get } from '@ember/object';
import { deprecate } from '@ember/application/deprecations';
import { setModifierManager, capabilities } from '@ember/modifier';

function hasValidTarget(target) {
return (
Expand Down Expand Up @@ -28,8 +28,9 @@ function getParams([maybeTarget, maybePropName]) {
};
}

export default Ember._setModifierManager(
export default setModifierManager(
() => ({
capabilities: capabilities ? capabilities('3.13') : undefined,
createModifier() {
return {
element: undefined,
Expand Down Expand Up @@ -68,5 +69,5 @@ export default Ember._setModifierManager(
}
}
}),
class OnModifier {}
class RefModifier {}
);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"test:all": "ember try:each"
},
"dependencies": {
"ember-cli-babel": "^7.1.2",
"ember-cli-babel": "^7.10.0",
"ember-modifier-manager-polyfill": "^1.0.1"
},
"devDependencies": {
Expand Down
Loading