Skip to content

Commit 1e72457

Browse files
refactor(addon/mixins/proxiable-mixin): migrates to es5 setter/getter to support classic and glimmer components.
1 parent eddf64f commit 1e72457

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

addon/mixins/proxiable-mixin.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable prettier/prettier */
21
/**
32
* @module ember-paper
43
*/
@@ -13,7 +12,6 @@ import { ChildMixin } from 'ember-composability-tools';
1312
* @extends Ember.Mixin
1413
*/
1514
export default Mixin.create(ChildMixin, {
16-
1715
classNameBindings: ['secondary:md-secondary'],
1816

1917
shouldRegister: false,
@@ -26,29 +24,29 @@ export default Mixin.create(ChildMixin, {
2624
this._super(...arguments);
2725
let parentComponent = this.parentComponent;
2826
if (parentComponent) {
29-
parentComponent.set('mouseActive', true);
27+
parentComponent.mouseActive = true;
3028
later(() => {
3129
if (parentComponent.isDestroyed) {
3230
return;
3331
}
34-
parentComponent.set('mouseActive', false);
32+
parentComponent.mouseActive = false;
3533
}, 100);
3634
}
3735
},
3836

3937
focusIn() {
4038
this._super(...arguments);
4139
let parentComponent = this.parentComponent;
42-
if (parentComponent && !parentComponent.get('mouseActive')) {
43-
parentComponent.set('focused', true);
40+
if (parentComponent && !parentComponent.mouseActive) {
41+
parentComponent.focused = true;
4442
}
4543
},
4644

4745
focusOut() {
4846
this._super(...arguments);
4947
let parentComponent = this.parentComponent;
5048
if (parentComponent) {
51-
parentComponent.set('focused', false);
49+
parentComponent.focused = false;
5250
}
53-
}
51+
},
5452
});

0 commit comments

Comments
 (0)