Hareeshchandera / jsplumb

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

Javascript errors/warnings when creating a connection #284

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I try to update JsPlumb from 1.3.10 to 1.3.15. But now I got Javascript 
warnings (logs) and errors. This was not the case with 1.3.10.  

I can reproduce this also on your demo site:
http://jsplumb.org/jquery/flowchartConnectorsDemo.html
When I create a connection, we've got the warning "TypeError: K is undefined". 
(see attachment 1)

On my application, in the same case, I got "jsPlumb function failed : 
TypeError: o is undefined" (see attachment 2). 
Not sure if this is the same problem. 

Ps. I created the stacktrace with console.error(msg) instead of console.log. 

System: Firefox 16.01/Win 7/SVG/jQuery 1.8.2/jQueryUI 1.8.24

Original issue reported on code.google.com by j.verdur...@2bmore.nl on 12 Oct 2012 at 11:06

Attachments:

GoogleCodeExporter commented 8 years ago
i cant replicate this. is this related to the other FF 16 issue somehow?

Original comment by simon.po...@gmail.com on 16 Oct 2012 at 11:47

GoogleCodeExporter commented 8 years ago
I've got the same error on Firefox 15.01. This issue is not related to issue 
283. It's maybe related to issue 285.

Original comment by j.verdur...@2bmore.nl on 16 Oct 2012 at 11:56

GoogleCodeExporter commented 8 years ago
Google Chrome reports: "jsPlumb function failed : TypeError: Cannot read 
property 'left' of undefined "

Chrome Version 22.0.1229.94 m / Win7 x64

Original comment by j.verdur...@2bmore.nl on 16 Oct 2012 at 11:58

GoogleCodeExporter commented 8 years ago
Case:
http://jsplumb.org/jquery/flowchartConnectorsDemo.html 
- Remove connection 4-4 by dragging the blue connector
- Create a new connection between  node 3 and node 4

-Chrome log (22.0.1229.94 m / Win7 x64) : 
connection con_53 is being dragged flowchartConnectorsDemo.js:119
connection con_53 was dragged flowchartConnectorsDemo.js:123
jsPlumb function failed : TypeError: Cannot read property 'left' of undefined 

-Firefox log(Firefox 15.01/Win7 x64)
connection con_53 is being dragged
connection con_53 was dragged
jsPlumb function failed : TypeError: K is undefined

Original comment by j.verdur...@2bmore.nl on 16 Oct 2012 at 12:01

GoogleCodeExporter commented 8 years ago
IE9 log: 
LOG: connection con_53 is being dragged 
LOG: connection con_53 was dragged 
LOG: jsPlumb function failed : TypeError: Unable to get value of the property 
'left': object is null or undefined 

I hope that the logs are helpfull

Original comment by j.verdur...@2bmore.nl on 16 Oct 2012 at 12:03

GoogleCodeExporter commented 8 years ago
i can't reproduce the issue.

Original comment by simon.po...@gmail.com on 16 Oct 2012 at 12:57

GoogleCodeExporter commented 8 years ago
HI,

I can reproduce the error on Mac OS X with Firefox 15.01

I will try to explain the use case more clear, and I found a shorter use case:
1) goto http://jsplumb.org/jquery/flowchartConnectorsDemo.html
2) open firebug and the enable the console log
3) drag a line between node 1 and 4. (= drag from the right blue endpoint of 
node 1 and release the mouse on node 4) 
4) the console reports: "jsPlumb function failed : TypeError: K is undefined" 
(on Firefox 15.01)

note!: When dropping the line on the green endpoint, no message is reported. So 
drop it on the node itself (the 'maketarget')

Original comment by j.verdur...@2bmore.nl on 16 Oct 2012 at 1:10

GoogleCodeExporter commented 8 years ago
ah, thats the bit i was missing...i was dropping on endpoints.  yes i see this 
now.

Original comment by simon.po...@gmail.com on 16 Oct 2012 at 1:53

GoogleCodeExporter commented 8 years ago
fixed in 1.3.16 dev

Original comment by simon.po...@gmail.com on 20 Oct 2012 at 5:48

GoogleCodeExporter commented 8 years ago
Issue 285 has been merged into this issue.

Original comment by simon.po...@gmail.com on 20 Oct 2012 at 5:48