Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

[JS] Code refactoring #141

@ElectricMaxxx

Description

@ElectricMaxxx

For a better working with the javascript code i would suggest some refactorings.

More files

As we concat the complete code into one file it wouldn't be that problem to divide the code into more files. So i would suggest some little services for each callback we put into the options object of fancytree. Doing so we can handle each part separate and could unit test most of them (mostly we do transformations on data.node)

type hinting

As fancytree has a feature rich api and we transport a specific model through our api i would suggest to use some kind of typehinting. In typescript i use (DefinitelyTyped)[https://github.com/DefinitelyTyped/DefinitelyTyped] no clue if ES6 has something equalt, but would be a reason for me to move into typescript (at the end it is an other converter only)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions