[Tree] Display tree correctly

This commit is contained in:
Victor Woeltjen
2016-03-11 14:40:04 -08:00
parent dc2b3e85cc
commit 7ee8d0a3f7
3 changed files with 11 additions and 13 deletions

View File

@ -22,13 +22,13 @@
/*global define*/
define([
'angular',
'zepto',
'text!../../res/templates/tree/toggle.html'
], function (angular, toggleTemplate) {
], function ($, toggleTemplate) {
function ToggleView(state) {
this.expanded = !!state;
this.callbacks = [];
this.el = angular.element(toggleTemplate);
this.el = $(toggleTemplate);
this.el.on('click', function () {
this.model(!this.expanded);
}.bind(this));