diff --git a/src/item/Item.js b/src/item/Item.js index caba5612..03b3596b 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -1444,16 +1444,6 @@ var Item = Base.extend(Callback, /** @lends Item# */{ return this._index; }, - /** - * Checks whether the item and all its parents are inserted into the DOM or - * not. - * - * @return {Boolean} {@true if the item is inserted into the DOM} - */ - isInserted: function() { - return this._parent ? this._parent.isInserted() : false; - }, - equals: function(item) { // Note: We do not compare name and selected state. return item === this || item && this._class === item._class @@ -2330,6 +2320,16 @@ var Item = Base.extend(Callback, /** @lends Item# */{ return !this._children || this._children.length === 0; }, + /** + * Checks whether the item and all its parents are inserted into the DOM or + * not. + * + * @return {Boolean} {@true if the item is inserted into the DOM} + */ + isInserted: function() { + return this._parent ? this._parent.isInserted() : false; + }, + /** * Checks whether the item is editable. *