From 4545a5d8a8d86c4d1e29c0e916619a4c625d6aed Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 8 Jun 2006 19:11:10 +0000 Subject: [PATCH] Collection.hasDescendent(type, id) -- type is 'collection' or 'item', for now --- .../content/scholar/xpcom/data_access.js | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/chrome/chromeFiles/content/scholar/xpcom/data_access.js b/chrome/chromeFiles/content/scholar/xpcom/data_access.js index 50dbe14524..bf48e72b10 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/data_access.js +++ b/chrome/chromeFiles/content/scholar/xpcom/data_access.js @@ -1140,13 +1140,10 @@ Scholar.Collection.prototype.changeParent = function(parent){ } if (parent){ - var descendents = this._getDescendents(); - for (var i=0, len=descendents.length; i