Skip to content

Commit

Permalink
Stop using ContainerView
Browse files Browse the repository at this point in the history
  • Loading branch information
XiphiasUvella committed Jul 20, 2015
1 parent d8f990c commit 4c898cf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/ember-test-helpers/test-module-for-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,16 @@ export default TestModule.extend({
context.dispatcher.setup({}, '#ember-testing');

this.callbacks.render = function() {
var containerView = Ember.ContainerView.create({container: container});
var subject;

Ember.run(function(){
var subject = context.subject();
containerView.pushObject(subject);
containerView.appendTo('#ember-testing');
subject = context.subject();
subject.appendTo('#ember-testing');
});

_this.teardownSteps.unshift(function() {
Ember.run(function() {
Ember.tryInvoke(containerView, 'destroy');
Ember.tryInvoke(subject, 'destroy');
});
});
};
Expand Down

0 comments on commit 4c898cf

Please sign in to comment.