{"size": 551, "ext": "js", "max_stars_repo_path": "ui/app/components/t-type-ahead/item.js", "max_stars_repo_name": "artzte/tiny-ale", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "ui/app/components/t-type-ahead/item.js", "max_issues_repo_name": "artzte/tiny-ale", "max_issues_repo_issues_event_min_datetime": "2020-06-29T18:02:37.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-21T23:34:23.000Z", "max_forks_repo_path": "ui/app/components/t-type-ahead/item.js", "max_forks_repo_name": "artzte/tiny-ale", "max_forks_repo_forks_event_min_datetime": "2020-10-16T21:51:09.000Z", "max_forks_repo_forks_event_max_datetime": "2020-10-16T21:51:09.000Z"}
{"max_stars_count": null, "max_issues_count": 39, "max_forks_count": 1, "avg_line_length": 19.6785714286, "max_line_length": 58, "alphanum_fraction": 0.5789473684}
import Component from '@ember/component';
import { computed } from '@ember/object';
import { debounce } from '@ember/runloop';

export default Component.extend({
  tagName: '',
  onMouseOver() {},
  onClick() {},
  isSelected: computed('index', 'selection', function () {
    const {
      index,
      selection,
    } = this;
    return index === selection;
  }),
  actions: {
    doClick() {
      this.onClick();
    },
    doMouseOver() {
      this.doMouseOver();
    },
  },
  doMouseOver() {
    debounce(this, this.onMouseOver, 50);
  },
});
