Skip to content

Hashcode Integers as Ids  #42

@vexa

Description

@vexa

Hi,
When you use large Integers as Id the client to Server transport breaks.

I got this problem because i use Java hashcodes as ids for the node. When you click the Node on the Java backend you got an string link 1.34342e6 ... after that you try to parse the Integer and result in an error.

To fix this problem you can do the following in fc-orgchat.js
'createNode': function($node, data) { $node.on('click', function() { currOrgChart.$server.onClick(data.id.toString()); // here is the fix });

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions