<commit_before>import Ember from 'ember';
import MaterializeButton from 'ember-cli-materialize/components/md-btn';
import layout from './template';

const { run: { scheduleOnce }, computed } = Ember;

export default MaterializeButton.extend({
  layout,
  tagName: 'a',
  text: 'Button',
  classNames: ['dropdown-button', 'btn-floating', 'reveal-menu'],
  icon: 'mdi-navigation-more-vert',
  iconPosition: 'right',
  attributeBindings: [
    'inDuration', 'outDuration', 'hover', 'gutter', 'belowOrigin'
  ],

  didInsertElement() {
    this._super(...arguments);
    scheduleOnce('afterRender', this, this._setupDropdown);
  },

  _setupDropdown() {
    // needed until the Materialize.dropdown plugin is replaced
    this.$().attr('data-activates', this.get('_dropdownContentId'));

    this.$().dropdown({
      hover: !!this.getWithDefault('hover', false),
      constrain_width: false,
      inDuration: this.getWithDefault('inDuration', this.get('_mdSettings.dropdownInDuration')),
      outDuration: this.getWithDefault('outDuration', this.get('_mdSettings.dropdownOutDuration')),
      gutter: this.getWithDefault('gutter', 0),
      belowOrigin: !!this.getWithDefault('belowOrigin', false)
    });
  },
  _dropdownContentId: computed(function() {
    return `${this.get('elementId')}-dropdown-content`;
  })
});<commit_msg>Remove unwise methods from md-reveal-button component<commit_after>import Ember from 'ember';
import MaterializeButtonDropdown from 'ember-cli-materialize/components/md-btn-dropdown';
import layout from './template';

const { run: { scheduleOnce }, computed } = Ember;

export default MaterializeButtonDropdown.extend({
  layout,
  text: 'Button',
  classNames: ['dropdown-button', 'btn-floating', 'reveal-menu'],
  icon: 'mdi-navigation-more-vert',
  attributeBindings: [
    'inDuration', 'outDuration', 'hover', 'gutter', 'belowOrigin'
  ]
});
{'fraction_non_alphanumeric': 0.15876398508257858, 'fraction_numerical': 0.0005327650506126798, 'mean_word_length': 4.961904761904762, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '679085', 'n_tokens_mistral': 575, 'n_tokens_neox': 564, 'n_words': 116}