Skip to content

Commit 14292cd

Browse files
author
Julian Kern
committedJul 19, 2022
changes after review
1 parent d8a659b commit 14292cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎can-component.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,9 @@ var Component = Construct.extend(
379379
this.view = this.prototype.view;
380380
}
381381

382-
var viewName = string.capitalize( string.camelize(this.prototype.tag) )+"View";
382+
var viewName;
383383
if(this.view !== undefined && typeof this.view !== "function"){
384+
viewName = string.capitalize( string.camelize(this.prototype.tag) )+"View";
384385
this.view = stache(viewName, this.view || "");
385386
}
386387

0 commit comments

Comments
 (0)
Please sign in to comment.