{"size": 750, "ext": "js", "max_stars_repo_path": "app/js/view/LeftNavView.js", "max_stars_repo_name": "dario01/domotics", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/js/view/LeftNavView.js", "max_issues_repo_name": "dario01/domotics", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/js/view/LeftNavView.js", "max_forks_repo_name": "dario01/domotics", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.0, "max_line_length": 66, "alphanum_fraction": 0.4453333333}
"use strict";

define(['marionette', 'templates','config', 'bootstrap-treeview'],
    function(Marionette, templates, config) {
        return Marionette.ItemView.extend({
            template: templates['app/templates/tree.hbs'],

            ui: {
                tree: '#tree'
            },

            events: {
                'nodeSelected @ui.tree': 'onTreeChange'
            },

            onTreeChange: function( event ) {
                console.log("onTreeChange");
            },

            onRender: function() {
                this.ui.tree.treeview({
                    data: config.tree,
                    enableLinks: true,
                    highlightSelected: false
                });
            }
        });
    }
);
