Use a variable for the key, as requested by codedread.
parent
19170116ba
commit
055198e28d
|
@ -171,7 +171,8 @@ svgEditor.addExtension("Connector", function(S) {
|
||||||
// Grab the ends
|
// Grab the ends
|
||||||
var parts = [];
|
var parts = [];
|
||||||
['start', 'end'].forEach(function (pos, i) {
|
['start', 'end'].forEach(function (pos, i) {
|
||||||
var part = elData(this, 'c_'+pos);
|
var key = 'c_' + pos;
|
||||||
|
var part = elData(this, key);
|
||||||
if(part == null) {
|
if(part == null) {
|
||||||
part = document.getElementById(
|
part = document.getElementById(
|
||||||
this.attributes['se:connector'].value.split(' ')[i]
|
this.attributes['se:connector'].value.split(' ')[i]
|
||||||
|
|
Loading…
Reference in New Issue