js/foundation/view/view.js in rsence-pre-2.2.0.19 vs js/foundation/view/view.js in rsence-pre-2.2.0.20
- old
+ new
@@ -872,10 +872,13 @@
},
/** Gets the size of the parent. If the parent is the document body, uses the browser window size.
**/
parentSize: function(){
+ if(!this.parent){
+ return [ 0, 0 ];
+ }
if(this.parent.elemId === 0){
var
_winSize = ELEM.windowSize(),
_docSize = ELEM.getScrollSize(0);
if( _docSize[0] > _winSize[0] || _docSize[1] > _winSize[1] ){
@@ -1369,10 +1372,10 @@
* = Returns
* +self+
*
**/
removeView: function(_viewId) {
- HSystem.views[_viewId].remove();
+ this.app.removeView( _viewId ); // no reason to duplicate this functionality here
return this;
},
/** = Description
* Call this if you need to remove a child view from this view, destroying its