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
This commit is contained in:
Dan Stillman 2006-06-20 15:23:44 +00:00
parent 8f38c09c2e
commit 95ca76545f

View file

@ -1368,8 +1368,7 @@ Scholar.Collection.prototype.erase = function(deleteItems){
Scholar.DB.beginTransaction(); Scholar.DB.beginTransaction();
var descendents = this._getDescendents(); var descendents = this._getDescendents();
var collections = new Array(this._id); var collections = [this.getID()], items = [];
var items = new Array();
for(var i=0, len=descendents.length; i<len; i++){ for(var i=0, len=descendents.length; i<len; i++){
// Descendent collections // Descendent collections