import Ember from 'ember';

export default Ember.Mixin.create({
  componentFor(name, owner) {
    let component = this._super(name, owner);

    // Ensure components are always managed my the container and thus have a connection to their styles
    if (!component) {
      owner.register(`component:${name}`, Ember.Component);
      component = this._super(name, owner);
    }

    return component;
  }
});

@@ -256,24 +256,54 @@
 omponent) %7B%0A
+      if (owner.register) %7B%0A  
       owner.
@@ -350,16 +350,138 @@
 onent);%0A
+      %7D else %7B%0A        owner._registry.register(%60component:$%7Bname%7D%60, Ember.Component); // Support for Ember 2.0.X%0A      %7D%0A
       co

Fix error in Ember 2.0