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:
parent
8f38c09c2e
commit
95ca76545f
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue