ember-native-class-codemod icon indicating copy to clipboard operation
ember-native-class-codemod copied to clipboard

Codemod deletes code comments

Open boydkr opened this issue 5 years ago • 1 comments

I wasn't expecting the codemod to delete many comments in our code. One small example: before

export default Component.extend({
    //To show or hide sibling checkboxes when one is hovered
    actions: {
        onMouseEnter() {
            this.set('siblingHovered', true);
        },
        onMouseExit() {
            this.set('siblingHovered', false);
        },
    },
});

after

@classic
export default class CategorySelect extends Component {
  @action
  onMouseEnter() {
    this.set('siblingHovered', true);
  }

  @action
  onMouseExit() {
    this.set('siblingHovered', false);
  }
}

boydkr avatar Mar 13 '20 01:03 boydkr