From af84a52af8a40bc37a47c35843db389c19cf7f4b Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sun, 27 Apr 2014 23:59:01 +0200 Subject: [PATCH] Move around Item#isInserted() code so it shows up in the Tests group section in the docs. --- src/item/Item.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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. *