From c807d335e97efa7aae85660d202a2ae8971eb736 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 6 Jun 2006 20:15:50 +0000 Subject: [PATCH] Changed Items.get() to return a regularly indexed array instead of one indexed by itemID--nothing actually used the keyed array, and this way it can be used for building trees directly (e.g. Scholar.Items.get(Scholar.Items.search('barnes'))) --- .../content/scholar/xpcom/data_access.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/chrome/chromeFiles/content/scholar/xpcom/data_access.js b/chrome/chromeFiles/content/scholar/xpcom/data_access.js index cdb23040c..55ed85429 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/data_access.js +++ b/chrome/chromeFiles/content/scholar/xpcom/data_access.js @@ -795,7 +795,7 @@ Scholar.Items = new function(){ * Can be passed ids as individual parameters or as an array of ids, or both * * If only one argument and it's an id, return object directly; - * otherwise, return array indexed by itemID + * otherwise, return array */ function get(){ var toLoad = new Array(); @@ -828,7 +828,7 @@ Scholar.Items = new function(){ // Otherwise, build return array for (i=0; i