From 8dd972dea141e28be07db6bbd0f024e110bc1208 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 5 Aug 2006 06:39:15 +0000 Subject: [PATCH] Make Collection.getDescendents() a[n officially] public method and add second param to limit results to 'collection' or 'item' --- .../content/scholar/xpcom/data_access.js | 32 +++++++++++-------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/chrome/chromeFiles/content/scholar/xpcom/data_access.js b/chrome/chromeFiles/content/scholar/xpcom/data_access.js index ec6ceb4cf..77dc0c7ac 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/data_access.js +++ b/chrome/chromeFiles/content/scholar/xpcom/data_access.js @@ -2349,7 +2349,7 @@ Scholar.Collection.prototype.hasItem = function(itemID){ Scholar.Collection.prototype.hasDescendent = function(type, id){ - var descendents = this._getDescendents(); + var descendents = this.getDescendents(); for (var i=0, len=descendents.length; i