Use a variable for the key, as requested by codedread.

master
KB Jørgensen 2018-01-22 10:08:40 +01:00
parent 19170116ba
commit 055198e28d
1 changed files with 2 additions and 1 deletions

View File

@ -171,7 +171,8 @@ svgEditor.addExtension("Connector", function(S) {
// Grab the ends
var parts = [];
['start', 'end'].forEach(function (pos, i) {
var part = elData(this, 'c_'+pos);
var key = 'c_' + pos;
var part = elData(this, key);
if(part == null) {
part = document.getElementById(
this.attributes['se:connector'].value.split(' ')[i]