[Tree] Begin handling selection state

This commit is contained in:
Victor Woeltjen
2016-03-11 17:00:55 -08:00
parent 4a8222a152
commit 03ab3bddc4
3 changed files with 50 additions and 4 deletions

View File

@ -30,11 +30,11 @@ define([
this.callbacks = [];
this.el = $(toggleTemplate);
this.el.on('click', function () {
this.model(!this.expanded);
this.value(!this.expanded);
}.bind(this));
}
ToggleView.prototype.model = function (state) {
ToggleView.prototype.value = function (state) {
this.expanded = state;
if (state) {