Skip to content

Commit d8a659b

Browse files
author
Julian Kern
committed
make tests passed
1 parent 831b609 commit d8a659b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

can-component.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,9 @@ var Component = Construct.extend(
380380
}
381381

382382
var viewName = string.capitalize( string.camelize(this.prototype.tag) )+"View";
383-
this.view = typeof this.view === "function" ?
384-
this.view :
385-
stache(viewName, this.view || "");
383+
if(this.view !== undefined && typeof this.view !== "function"){
384+
this.view = stache(viewName, this.view || "");
385+
}
386386

387387
var renderComponent = function(el, tagData) {
388388
// Check if a symbol already exists on the element; if it does, then

0 commit comments

Comments
 (0)