Skip to content

Commit

Permalink
fix bad merge
Browse files Browse the repository at this point in the history
fix merge part duex
  • Loading branch information
toddjordan committed Aug 19, 2016
1 parent d2b80f8 commit 7117474
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions addon/components/dynamic-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,14 @@ const DynamicForm = Ember.Component.extend({
formRenderer: null,

init() {
let renderer = this.get('_renderer');
if (!renderer) {
let container = getOwner(this);
let config = container.resolveRegistration('config:environment');
if (config.dynamicForms && config.dynamicForms.renderer) {
renderer = container.lookup(`${config.dynamicForms.renderer}:dynamic-forms.renderers`);
} else {
renderer = container.lookup('alpaca:dynamic-forms.renderers');
}

this._super(...arguments);
let container = getOwner(this);
let config = container.resolveRegistration('config:environment');
if (config.dynamicForms && config.dynamicForms.renderer) {
set(this, 'formRenderer', container.lookup(`${config.dynamicForms.renderer}:dynamic-forms.renderers`));
} else {
set(this, 'formRenderer', container.lookup('alpaca:dynamic-forms.renderers'));
}
},

_render() {
Expand Down

0 comments on commit 7117474

Please sign in to comment.