Skip to content
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

Using for-each loop to iterate Array cause problem. #11

Open
ArayChou opened this issue Jul 23, 2016 · 1 comment
Open

Using for-each loop to iterate Array cause problem. #11

ArayChou opened this issue Jul 23, 2016 · 1 comment

Comments

@ArayChou
Copy link

Hi there, I use jquery-aciTree-4.4.0 and jquery-bootgrid plugin. jquery-bootgrid add some method to Array.

in jquery.aciTree.core.js line 1413, there is a for-each loop for Array: "for (var i in itemData) {", which could be change to "for (var i=0; i<itemData.length; i++) {", to avoid to generate some addtional tree items.

thanks for your greate work.

@jasonalanharris-bcg
Copy link

Just adding my vote for this fix - you end up with a bunch of undefined nodes without it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants