existing = existing || [];
// existing.push('*top'); // always have top
var ret = [];
- console.dump(this.map);
+ // console.dump(this.map);
function addRight(right) {
right.forEach(function(r) {
if (ret.indexOf(r) > -1) {
this.map.forEach(function(m) {
var done = false
m.left.forEach( function(left) {
- //if (done) return; -- can have multiple matches!
+ if (done) return;
var l = left.replace(/:.*$/, '');
if (existing.indexOf(l) > -1) {
addRight(m.right);
});
});
+ console.dump(ret);
return ret;