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

populateData is wrong ! #54

Open
weiyinfu opened this issue Oct 30, 2017 · 0 comments
Open

populateData is wrong ! #54

weiyinfu opened this issue Oct 30, 2017 · 0 comments

Comments

@weiyinfu
Copy link

This is the demo of treema http://codecombat.github.io/treema/
There is a head js in this html : http://codecombat.github.io/treema/js/treema.js
This function is wrong:

    TreemaNode.prototype.populateData = function () {
        return this.data = this.data || this.schema["default"] || this.getDefaultValue();
    };

when this.data=0,its populated data will be null , but actually it should be a number 0.
It cost me all the morning.
I hope you can update that demo !

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

1 participant