New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Every boards duplicate in the board list given as parameter #45
Comments
I never saw that behavior. I have a client with 5 boards and a huge amount of 100+ items per board doing it's job with ajax requests at every interaction. Btw, I guess that is not a DOM problem, but just that boardJson property. Just in time: I never used that property before. 😳 |
Why do I get double the object data after creating jkanban?
The contents of [defaultBoards] are doubled. |
Hi @mkooo, all ids of the boards must be unique, in your code all the boards have |
Hi, @riktar My object data is only 3 elements, but the result of [console.log] is 6 elements. Sorry to trouble you, but could you give me some advice?
---- result of console.log ----
|
@mkooo defaultBoards must be used only for configuration, if you want the boards or elemnet inside jKanban you must use the API https://github.com/riktar/jkanban#api |
fixed in 1d3f2bf |
Hi !
We have to give a list of boards in order to create our jkanban.
I see that this list have 2x more elements after jkanban creation than before.
For instance, if I have 5 elements in the boardJson given as "boards" parameter, after creation of jkanban I have boardJson.lenght = 10.
This is not good for me because I need this list for other purpose. Duplicate boards are boring the handle.
Looking into the code, I see this " self.options.boards.push(board);" in the "addBoards" function.
As boards are already in options, I think that this is unusefull and the root of my trouble.
I comment this line, and everything "seems" to work fine without this line.
Can I have your opinion on this?
Thank you!
The text was updated successfully, but these errors were encountered: