Hareeshchandera / jsplumb

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

First parameter of "mouseexit" for a connection is not the connection object #197

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We found a bug in version 1.3.5 after migrating rom version 1.3.3.

conn = jsPlumb.connect({
                source: e0, 
                target: e1,
                ...});

conn.bind("mouseexit", function(connection, originalEvent) { 
                connection.overlays[0].hide();
            });

the 'connection' parameter is not a connection. The "mouseenter" works
well, though.

Original issue reported on code.google.com by dmacr...@gmail.com on 9 Feb 2012 at 9:45

GoogleCodeExporter commented 8 years ago
this is fixed in 1.3.6 dev.  you could make the change in your 1.3.5 version to 
test if you want.

find this line (probably line 611)

_self.fire("mouseexit", self, e);

and change the second argument to the fire function from "self" to "_self".

Original comment by simon.po...@gmail.com on 12 Feb 2012 at 8:31

GoogleCodeExporter commented 8 years ago
1.3.6 was released yesterday.

Original comment by simon.po...@gmail.com on 27 Feb 2012 at 10:05