commit 95ca76545fc835a4ca171297cebcba23b31cef1f
parent 8f38c09c2ec2ad328d9d27ea139b0d373ab3bbca
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 20 Jun 2006 15:23:44 +0000
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
Diffstat:
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
@@ -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<len; i++){
// Descendent collections