Skip to content

Commit

Permalink
fixing component load with no component body
Browse files Browse the repository at this point in the history
  • Loading branch information
Quickcorp committed May 13, 2018
1 parent 8ea2271 commit 1ccf088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QCObjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -907,10 +907,10 @@
var newComponent = New(Component,{
name:components[_c].getAttribute('name').toString(),
data:data,
body:components[_c],
templateURI:'{{COMPONENTS_BASE_PATH}}{{COMPONENT_NAME}}.html'.replace('{{COMPONENT_NAME}}',components[_c].getAttribute('name').toString()).replace('{{COMPONENTS_BASE_PATH}}',CONFIG.get('componentsBasePath'))
});
newComponent.done = function (){
components[_c].innerHTML=this.body.innerHTML;
_buildComponent(this.body.querySelectorAll('component:not([loaded])'));
this.body.setAttribute('loaded',true);
};
Expand Down

0 comments on commit 1ccf088

Please sign in to comment.