We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 831b609 commit d8a659bCopy full SHA for d8a659b
can-component.js
@@ -380,9 +380,9 @@ var Component = Construct.extend(
380
}
381
382
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 || "");
+ if(this.view !== undefined && typeof this.view !== "function"){
+ this.view = stache(viewName, this.view || "");
+ }
386
387
var renderComponent = function(el, tagData) {
388
// Check if a symbol already exists on the element; if it does, then
0 commit comments