Skip to content

Commit

Permalink
fixing component load
Browse files Browse the repository at this point in the history
  • Loading branch information
Quickcorp committed May 10, 2018
1 parent 740e8fa commit 0d243c1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions QCObjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -897,9 +897,9 @@
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])'));
};
components[_c].append(newComponent);
} else {
var newComponent = New(Component,{
name:components[_c].getAttribute('name').toString(),
Expand All @@ -916,10 +916,11 @@
}
};
var components = document.querySelectorAll('component:not([loaded])');
while (components.length>0){
_buildComponent(components);
components = document.querySelectorAll('component:not([loaded])');
}
_buildComponent(components);
// while (components.length>0){
// _buildComponent(components);
// components = document.querySelectorAll('component:not([loaded])');
// }
});

/*
Expand Down

0 comments on commit 0d243c1

Please sign in to comment.