Commit 5d99346a authored by Remon Huijts's avatar Remon Huijts
Browse files

Fix two newly introduced bugs

parent d1f39f80
......@@ -123009,13 +123009,12 @@ var interactions = {
 
// Get the node and all nodes of the children of cell:
var triggerNodes = interactions.cellNodes(graph, cell, true);
var handlers = [];
 
var actionString = cell.value.getAttribute('onclick');
handlers.concat(interactions.createEventHandlers(graph, actionString));
var handlers = interactions.createEventHandlers(graph, actionString);
// Legacy graphs had actions in the onhover attribute as well:
actionString = cell.value.getAttribute('onhover');
handlers.concat(interactions.createEventHandlers(graph, actionString));
handlers = handlers.concat(interactions.createEventHandlers(graph, actionString));
 
handlers.forEach(function(handler) {
interactions.installHandler(handler, graph, triggerNodes);
......@@ -123394,7 +123393,7 @@ InteractionsUi = function(panel) {
continue;
}
for (var j = 0; j < rules.length; j++) {
this.rules.push(new Rule(this, rule));
this.rules.push(new Rule(this, rules[j]));
}
}
}
......@@ -91,7 +91,7 @@ InteractionsUi = function(panel) {
continue;
}
for (var j = 0; j < rules.length; j++) {
this.rules.push(new Rule(this, rule));
this.rules.push(new Rule(this, rules[j]));
}
}
}
......
......@@ -37,13 +37,12 @@ var interactions = {
// Get the node and all nodes of the children of cell:
var triggerNodes = interactions.cellNodes(graph, cell, true);
var handlers = [];
var actionString = cell.value.getAttribute('onclick');
handlers.concat(interactions.createEventHandlers(graph, actionString));
var handlers = interactions.createEventHandlers(graph, actionString);
// Legacy graphs had actions in the onhover attribute as well:
actionString = cell.value.getAttribute('onhover');
handlers.concat(interactions.createEventHandlers(graph, actionString));
handlers = handlers.concat(interactions.createEventHandlers(graph, actionString));
handlers.forEach(function(handler) {
interactions.installHandler(handler, graph, triggerNodes);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment