Skip to content
Snippets Groups Projects
Commit 76aee15d authored by Amanda Ghassaei's avatar Amanda Ghassaei
Browse files

comments

parent bcb4019e
Branches
No related tags found
No related merge requests found
......@@ -31,8 +31,8 @@ Lattice = Backbone.Model.extend({
removeCell: function(object){
var cells = this.get("cells");
var index = cells.indexOf(object.parent.myCell);
if (index == -1) {
console.warn("problem located cell in cell array");
if (index == -1) {//I think this is happening when two intersection/remove calls are done on the same cell before the next render loop finished
console.warn("problem locating cell in cell array");
return;
}
cells.splice(index, 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment