{"size": 719, "ext": "js", "max_stars_repo_path": "src/core/js/models/itemModel.js", "max_stars_repo_name": "shonesque/computer-vision", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/core/js/models/itemModel.js", "max_issues_repo_name": "shonesque/computer-vision", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/core/js/models/itemModel.js", "max_forks_repo_name": "shonesque/computer-vision", "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": 20.5428571429, "max_line_length": 62, "alphanum_fraction": 0.4770514604}
define(function() {

    var ItemModel = Backbone.Model.extend({

        defaults: {
            _isActive: false,
            _isVisited: false
        },

        reset: function() {
            this.set({ _isActive: false, _isVisited: false });
        },

        toggleActive: function(isActive) {
            if (isActive === undefined) {
                isActive = !this.get('_isActive');
            }

            this.set('_isActive', isActive);
        },

        toggleVisited: function(isVisited) {
            if (isVisited === undefined) {
                isVisited = !this.get('_isVisited');
            }

            this.set('_isVisited', isVisited);
        }

    });

    return ItemModel;

});
