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

config.maxNodesPerLevel apply only at root bubble #20

Open
dmarzo opened this issue May 11, 2012 · 0 comments
Open

config.maxNodesPerLevel apply only at root bubble #20

dmarzo opened this issue May 11, 2012 · 0 comments

Comments

@dmarzo
Copy link

dmarzo commented May 11, 2012

Fix (apply recursively)

me.preprocessData = function(root) {

    var me = this, maxNodes = me.config.maxNodesPerLevel;
    if (maxNodes) {
        if (maxNodes < root.children.length) {
            ....
        }

        for (index in root.children) {
            var child = root.children[index];
            me.preprocessData(child);
        }
    }
};
@pwalsh pwalsh added the bug label Dec 15, 2015
@pwalsh pwalsh added this to the Backlog milestone Dec 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants