sql.relation constructor; fixes #206
This commit is contained in:
+2
-2
@@ -13,8 +13,8 @@ SQL.Relation = function(owner, row1, row2) {
|
|||||||
if (all.length) { /* inherit */
|
if (all.length) { /* inherit */
|
||||||
this.color = all[0].getColor();
|
this.color = all[0].getColor();
|
||||||
} else if (CONFIG.RELATION_COLORS) { /* pick next */
|
} else if (CONFIG.RELATION_COLORS) { /* pick next */
|
||||||
this.constructor._counter++;
|
SQL.Relation._counter++;
|
||||||
var colorIndex = this.constructor._counter - 1;
|
var colorIndex = SQL.Relation._counter - 1;
|
||||||
this.color = CONFIG.RELATION_COLORS[colorIndex % CONFIG.RELATION_COLORS.length];
|
this.color = CONFIG.RELATION_COLORS[colorIndex % CONFIG.RELATION_COLORS.length];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user