import Ember from "ember";
import Wormhole from 'ember-wormhole/components/ember-wormhole';
import layout from '../templates/components/x-favicon';

let [major, minor] = Ember.VERSION.split('.').map(n => parseInt(n, 10));
let needsBindAttr = major === 1 && minor < 11;

export default Wormhole.extend({
  layout,
  destinationElement: Ember.computed(function () {
    return document.getElementsByTagName('head')[0];
  }),

  needsBindAttr
});

@@ -146,129 +146,8 @@
 ';%0A%0A
-let %5Bmajor, minor%5D = Ember.VERSION.split('.').map(n =%3E parseInt(n, 10));%0Alet needsBindAttr = major === 1 && minor %3C 11;%0A%0A
 expo
@@ -297,26 +297,8 @@
   %7D)
-,%0A%0A  needsBindAttr
 %0A%7D);

Remove `needsBindAttr` from x-favicon component in tests