Skip to content

Commit a7af2e3

Browse files
committed
Don't override template if already set
1 parent eb5033c commit a7af2e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/js/adapt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ define(function(require){
8080
// Store the component view
8181
if (Adapt.componentStore[name])
8282
throw Error('This component already exists in your project');
83-
object.template = name;
83+
if(!object.template) object.template = name;
8484
Adapt.componentStore[name] = object;
8585

8686
}

0 commit comments

Comments
 (0)