From 4e98a94a14813fa2bc4708d602b783f39841be5f Mon Sep 17 00:00:00 2001
From: Amanda Ghassaei <amandaghassaei@gmail.com>
Date: Sat, 16 May 2015 03:04:33 -0400
Subject: [PATCH] dont add childless supercell

---
 js/models/LatticeOther.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/js/models/LatticeOther.js b/js/models/LatticeOther.js
index 5cf4ff23..96f775ef 100644
--- a/js/models/LatticeOther.js
+++ b/js/models/LatticeOther.js
@@ -90,6 +90,7 @@ OtherLatticeSubclasses = {
         addSuperCell: function(range){
             var length = this.get("gikLength");
             var cells = this.addCellsInRange(range);
+            if (cells.length < 1) return;
             var superCell = new DMASuperCell(length, range, cells);
             _.each(cells, function(cell, index){
                 cell.setSuperCell(superCell, index);
-- 
GitLab