Skip to content
Browse files

bugfix: was made of stupid

  • Loading branch information...
1 parent 83ed92a commit e2345b8642d621ff592e84a338b15d15511897b9 @hano hano committed Jul 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 modules/core/foundation/view.js
View
4 modules/core/foundation/view.js
@@ -736,8 +736,8 @@ M.View = M.Object.extend(
this.parentPage = this.parentView.getParentPage();
}else{
var parentId = $('#' + this.id).parent().closest('[id^=m_]').attr('id');
- if(this.parentPage){
- this.parentPage = M.ViewManager.getViewById().getParentPage();
+ if(parentId){
+ this.parentPage = M.ViewManager.getViewById(parentId).getParentPage();
}
}
return this.parentPage;

0 comments on commit e2345b8

Please sign in to comment.
Something went wrong with that request. Please try again.