From 95ca76545fc835a4ca171297cebcba23b31cef1f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 20 Jun 2006 15:23:44 +0000 Subject: [PATCH] QA testing of extension performance aboard trains Fix in Collection.erase() -- when the DB methods started returning values in their native type, the collection id became an int rather than a string and "new Array(this._id)" became a length declaration rather than an elements declaration --- chrome/chromeFiles/content/scholar/xpcom/data_access.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chrome/chromeFiles/content/scholar/xpcom/data_access.js b/chrome/chromeFiles/content/scholar/xpcom/data_access.js index f9ddbd2a9..cc5dc8d43 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/data_access.js +++ b/chrome/chromeFiles/content/scholar/xpcom/data_access.js @@ -1368,8 +1368,7 @@ Scholar.Collection.prototype.erase = function(deleteItems){ Scholar.DB.beginTransaction(); var descendents = this._getDescendents(); - var collections = new Array(this._id); - var items = new Array(); + var collections = [this.getID()], items = []; for(var i=0, len=descendents.length; i