Skip to content

Commit

Permalink
fix loading components
Browse files Browse the repository at this point in the history
  • Loading branch information
Quickcorp committed Mar 6, 2018
1 parent a973fde commit 43a0282
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions QCObjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -712,13 +712,13 @@
asyncLoad(function (){
var components = document.querySelectorAll('component');
for (var _c = 0;_c<components.length;_c++){
Class(components[_c].name.toString(),Component,{
'name':components[_c].name.toString(),
'templateURI':'{{COMPONENTS_BASE_PATH}}{{COMPONENT_NAME}}.html'.replace('{{COMPONENT_NAME}}',components[_c].name.toString()).replace('{{COMPONENTS_BASE_PATH}}',CONFIG.get('componentsBasePath'))
Class(components[_c].getAttribute('name').toString(),Component,{
'name':components[_c].getAttribute('name').toString(),
'templateURI':'{{COMPONENTS_BASE_PATH}}{{COMPONENT_NAME}}.html'.replace('{{COMPONENT_NAME}}',components[_c].getAttribute('name').toString()).replace('{{COMPONENTS_BASE_PATH}}',CONFIG.get('componentsBasePath'))
});
var newComponent = New(_QC_CLASSES[components[_c].name.toString()],{
'name':components[_c].name.toString(),
'templateURI':'{{COMPONENTS_BASE_PATH}}{{COMPONENT_NAME}}.html'.replace('{{COMPONENT_NAME}}',components[_c].id.toString()).replace('{{COMPONENTS_BASE_PATH}}',CONFIG.get('componentsBasePath'))
var newComponent = New(_QC_CLASSES[components[_c].getAttribute('name').toString()],{
'name':components[_c].getAttribute('name').toString(),
'templateURI':'{{COMPONENTS_BASE_PATH}}{{COMPONENT_NAME}}.html'.replace('{{COMPONENT_NAME}}',components[_c].getAttribute('name').toString()).replace('{{COMPONENTS_BASE_PATH}}',CONFIG.get('componentsBasePath'))
});
components[_c].append(newComponent);
}
Expand Down

0 comments on commit 43a0282

Please sign in to comment.