js/foundation/view/view.js in rsence-2.2.2 vs js/foundation/view/view.js in rsence-2.2.3

- old
+ new

@@ -1462,10 +1462,10 @@ // Delete the children first. var _childViewId, i; if(!this.views && !this.isProduction){ console.log('HView#die: no subviews for component name: ',this.componentName,', self:',this); } - while (this.views.length !== 0) { + while (this.views && this.views.length !== 0) { _childViewId = this.views[0]; this.destroyView(_childViewId); } // Remove this object's bindings, except the DOM element. this.remove();