Skip to content

Commit

Permalink
Add DijitRegistry#getParent for compatibility with dijit._KeyNavConta…
Browse files Browse the repository at this point in the history
…iner
  • Loading branch information
k2s authored and Kenneth G. Franqueiro committed Jun 21, 2013
1 parent 290f675 commit b2c5ef8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions extensions/DijitRegistry.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ function(declare, domGeometry, registry){
// summary:
// dgrid doesn't support watch; this is a no-op for compatibility with
// some Dijit layout widgets which assume its existence.
},

getParent: function(){
// summary:
// Analogue of _WidgetBase#getParent for compatibility with for example
// dijit._KeyNavContainer.
return registry.getEnclosingWidget(this.domNode.parentNode);
}
});
});

0 comments on commit b2c5ef8

Please sign in to comment.