storage system refactored

This commit is contained in:
Ondrej Zara
2015-06-15 12:02:57 +02:00
parent dcea4c24e5
commit 35b4c67a4a
34 changed files with 539 additions and 597 deletions
+2 -2
View File
@@ -13,8 +13,8 @@ SQL.Relation = function(owner, row1, row2) {
if (all.length) { /* inherit */
this.color = all[0].getColor();
} else if (CONFIG.RELATION_COLORS) { /* pick next */
this.constructor._counter++;
var colorIndex = this.constructor._counter - 1;
SQL.Relation._counter++;
var colorIndex = SQL.Relation._counter - 1;
this.color = CONFIG.RELATION_COLORS[colorIndex % CONFIG.RELATION_COLORS.length];
}