sukima / ember-cli-select-picker

An enhanced Boostrap styled select component addon for Ember CLI
https://sukima.github.io/ember-cli-select-picker
MIT License
23 stars 15 forks source link

Strange quote is raising an error in IE #38

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hi,

the quotes around click in

setupDom: Ember.on('didInsertElement', function() {
    $(document).on(
      `click.${this.get('elementId')}`,
      Ember.run.bind(this, this.hideDropdownMenu)
    );
  }),

(in app/component/select-picker,js) raise an error in IE. Chrome and Firefox work fine. Just replacing it with a single quote works as expected.

Kind regards Joscha

sukima commented 9 years ago

What is the output of Bable? Ember-CLI is supposed to transpile the ES6 to ES5. How did the back ticks get into the code that IE, FF, or Chrome executes?

ghost commented 9 years ago

You're so right of course. Babel was messing up stuff (reinstalled via npm and everything works fine). Thanks for the quick answer.

sukima commented 9 years ago

Glad it helped.