Skip to content

Commit

Permalink
ENYO-809: getParentNode modified
Browse files Browse the repository at this point in the history
Enyo-DCO-1.0-Signed-off-by: Dave Freeman <Dave.Freeman@palm.com>

This change adds another possible rendering parent for enyo.Control's
getParentNode() method to return.  This is necessary for cases where the
kind's parentNode is null or its parent has no node, such as a
ScrollStrategy.
  • Loading branch information
sugardave committed Sep 14, 2012
1 parent 2d35aa4 commit 6cc217c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/dom/Control.js
Expand Up @@ -629,7 +629,8 @@ enyo.kind({
}
},
getParentNode: function() {
return this.parentNode || (this.parent && this.parent.hasNode()) || (this.parent && this.parent.getParentNode && this.parent.getParentNode());
//return this.parentNode || (this.parent && this.parent.hasNode()) || (this.parent && this.parent.getParentNode && this.parent.getParentNode());
return this.parentNode || (this.parent && (this.parent.hasNode() || this.parent.getParentNode()));
},
addNodeToParent: function() {
if (this.node) {
Expand Down

0 comments on commit 6cc217c

Please sign in to comment.