I get my instance as follows:
jsp = jsPlumb.getInstance(); jsp.setContainer(_domnodeId); jsp.ready(function(){
result:

in another function, I am doing the same thing:
jsp = jsPlumb.getInstance(); jsp.setContainer(_domnodeId); jsp.ready(function(){ //var dynamicAnchor = [ [ 0.2,1,0.5 ], [ 0.2, 1, 0.5 ], "Top", "Bottom" ]; var common = { anchor:[ "Continuous", { faces:["bottom","right"] }], endpoint: "Blank", connector:[ "Bezier", { curviness:50 }, common ], overlays: [ ["Arrow", {location:1, width:10, length:10}], ] }; jsp.connect({ source: boxes.b1.boxId, target: boxes.b2.boxId }, common); }

The arrows all move left, the top corner ... var jsp is global, and I cleared _domnodeId at the beginning of my second function. Any suggestions?
cleaning my domnodeID:
function clean(container){ //remove everything $("#" + container) .children() .not('nav') .remove(); // box id counter window.EvmClasses.chartBox.boxId = 0; }
javascript jsplumb
h0ppel
source share