mirror of
https://github.com/nasa/openmct.git
synced 2025-06-18 15:18:12 +00:00
[Tree] Display tree correctly
This commit is contained in:
@ -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));
|
||||
|
Reference in New Issue
Block a user