Hareeshchandera / jsplumb

Automatically exported from code.google.com/p/jsplumb
0 stars 0 forks source link

how to bind a "jsPlumbConnection" event to an endpoint #121

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Here is what I did:
var ep = jsPlumb.addEndpoint("swindow", jsPlumb.extend({anchor:[0, start + 
i*offset, -1, 0], uuid:UUID}), InputEP);
jsPlumb.bind(ep, "jsPlumbConnection", function(conn){
alert("a connection is created: " + conn.sourceId + "<---->" + conn.targetId);
});

But it does not work in ff 4.0, ie8, and chrome14.0.825.0. Did I do it wrong?

Original issue reported on code.google.com by jigsaw1...@gmail.com on 17 Aug 2011 at 3:24

GoogleCodeExporter commented 8 years ago
sorry it is ff5.0

Original comment by jigsaw1...@gmail.com on 17 Aug 2011 at 4:33

GoogleCodeExporter commented 8 years ago
you should feel free to email me questions like this directly: this is not 
really an issue report.

unless you want to turn it into an enhancement request of course - because 
jsPlumb doesn't support that event on Endpoints.  see the API docs here:

http://jsplumb.org/apidocs/files/jsPlumb-1-3-2-all-js.html

Original comment by simon.po...@gmail.com on 17 Aug 2011 at 5:09

GoogleCodeExporter commented 8 years ago
sorry, I will email you directly next time. Thanks. You are doing a great job.

Original comment by jigsaw1...@gmail.com on 17 Aug 2011 at 5:37

GoogleCodeExporter commented 8 years ago
that's cool - i'll close this out.

Original comment by simon.po...@gmail.com on 18 Aug 2011 at 8:28