Skip to content

Commit

Permalink
rebuild method for components
Browse files Browse the repository at this point in the history
  • Loading branch information
Quickcorp committed Mar 11, 2018
1 parent b0f80e3 commit 37cf151
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions QCObjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -637,12 +637,15 @@
get:function (name){
return this[name];
},
'_new_':function (properties){
this.__new__(properties);
rebuild:function (){
this.set('url',this.get('basePath')+this.get('templateURI'));
if (typeof this.get('templateURI') !='undefined' && this.get('templateURI') != ""){
componentLoader(this,false);
}
},
'_new_':function (properties){
this.__new__(properties);
this.rebuild();
}
});

Expand Down

0 comments on commit 37cf151

Please sign in to comment.