Commit 8be2b89f authored by Remon Huijts's avatar Remon Huijts
Browse files

Clear legacy onhover attribute

parent b52a30b8
......@@ -123548,7 +123548,10 @@ EventRules.prototype.save = function()
value.push(this.rules[i].attributes);
}
var cellValue = this.getCellValue();
cellValue.setAttribute('on' + this.eventName, JSON.stringify(value));
// Store all interactions in the onclick attribute:
cellValue.setAttribute('onclick', JSON.stringify(value));
// Clear any interactions in the onhover attribute of legacy graphs:
cellValue.removeAttribute('onhover');
this.graph.getModel().setValue(this.cell, cellValue);
};
 
......@@ -211,7 +211,10 @@ EventRules.prototype.save = function()
value.push(this.rules[i].attributes);
}
var cellValue = this.getCellValue();
cellValue.setAttribute('on' + this.eventName, JSON.stringify(value));
// Store all interactions in the onclick attribute:
cellValue.setAttribute('onclick', JSON.stringify(value));
// Clear any interactions in the onhover attribute of legacy graphs:
cellValue.removeAttribute('onhover');
this.graph.getModel().setValue(this.cell, cellValue);
};
......
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