Skip to content

Commit

Permalink
_Container: removed deprecated _getSiblingOfChild() method, refs #4
Browse files Browse the repository at this point in the history
  • Loading branch information
wkeese committed May 10, 2013
1 parent 9ed44e0 commit b1a9921
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions _Container.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
define([
"dojo/_base/array", // array.forEach array.indexOf
"dojo/_base/declare", // declare
"dojo/dom-construct", // domConstruct.place
"dojo/_base/kernel" // kernel.deprecated
], function(array, declare, domConstruct, kernel){
"dojo/dom-construct" // domConstruct.place
], function(array, declare, domConstruct){

// module:
// dijit/_Container
Expand Down Expand Up @@ -86,20 +85,6 @@ define([
return this.getChildren().length > 0; // Boolean
},

_getSiblingOfChild: function(/*dijit/_WidgetBase*/ child, /*int*/ dir){
// summary:
// Get the next or previous widget sibling of child
// dir:
// if 1, get the next sibling
// if -1, get the previous sibling
// tags:
// private
kernel.deprecated(this.declaredClass+"::_getSiblingOfChild() is deprecated. Use _KeyNavMixin::_getNext() instead.", "", "2.0");
var children = this.getChildren(),
idx = array.indexOf(children, child); // int
return children[idx + dir];
},

getIndexOfChild: function(/*dijit/_WidgetBase*/ child){
// summary:
// Gets the index of the child in this container or -1 if not found
Expand Down

0 comments on commit b1a9921

Please sign in to comment.