Skip to content

populateData is wrong ! #54

@weiyinfu

Description

@weiyinfu

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 !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions