Skip to content

Commit 2dc853c

Browse files
committed
fix to call init on component when no attributes are provided
1 parent bd6d5f0 commit 2dc853c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/templates.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,9 @@ View.prototype.serialize = function() {
163163
return null;
164164
};
165165
View.prototype._isComponent = function(context) {
166-
return this.componentFactory &&
167-
context.attributes && !context.attributes.extend;
166+
if (!this.componentFactory) return false;
167+
if (context.attributes && context.attributes.extend) return false;
168+
return true;
168169
};
169170
View.prototype._initComponent = function(context) {
170171
return (this._isComponent(context)) ?

0 commit comments

Comments
 (0)