Skip to content

Commit

Permalink
feat: remove ember-new-computed dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
kcahir authored and mike-north committed Mar 3, 2019
1 parent 353b04b commit e3ab9f4
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 554 deletions.
3 changes: 1 addition & 2 deletions addon/components/selectable-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { alias } from '@ember/object/computed';
import Component from '@ember/component';
import ChildComponentSupport from 'ember-composability/mixins/child-component-support';
import SelectableItemGroup from './selectable-item-group';
import _computed from 'ember-new-computed';

export default Component.extend(ChildComponentSupport, {
// eslint-disable-next-line
Expand All @@ -12,7 +11,7 @@ export default Component.extend(ChildComponentSupport, {
disabled: false,
classNames: ['materialize-selectable-item'],

_checked: _computed('checked', 'group.selection', 'group.selection.[]', {
_checked: computed('checked', 'group.selection', 'group.selection.[]', {
get() {
let group = this.get('group');
if (!group) {
Expand Down
1 change: 0 additions & 1 deletion blueprints/ember-cli-materialize/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ module.exports = {
packages: [
{ name: 'ember-composability', target: '~0.3.7' },
{ name: 'ember-radio-button', target: '1.0.7' },
{ name: 'ember-new-computed', target: '~1.0.2' },
{ name: 'ember-keyboard', target: '3.0.0' },
{ name: 'ember-truth-helpers', target: '1.2.0' },
{ name: 'ember-modal-dialog', target: '~0.8.0' },
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
"ember-material-design-icons-shim": "0.1.13",
"ember-materialize-shim": "0.5.1",
"ember-modal-dialog": "3.0.0",
"ember-new-computed": "1.0.3",
"ember-percy": "1.5.0",
"ember-radio-button": "1.2.4",
"ember-resolver": "5.1.3",
Expand Down
2 changes: 1 addition & 1 deletion tests/dummy/app/components/example-snippet.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Component from '@ember/component';
import { computed } from '@ember/object';
import { empty } from '@ember/object/computed';
import computed from 'ember-new-computed';

export default Component.extend({
emptySnippet: empty('snippet'),
Expand Down
2 changes: 1 addition & 1 deletion tests/dummy/app/components/options-panel.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Component from '@ember/component';
import computed from 'ember-new-computed';
import { computed } from '@ember/object';

export default Component.extend({
componentName: '',
Expand Down
Loading

0 comments on commit e3ab9f4

Please sign in to comment.