mirror of
https://github.com/nasa/openmct.git
synced 2025-04-10 21:00:16 +00:00
[Search] Comments and errors
Changed TreeNodeController slightly to do error checking. Also updated some comments.
This commit is contained in:
parent
300280e03e
commit
9143f5febd
@ -171,9 +171,10 @@ define(
|
||||
// If this object is the same as the model's selected object
|
||||
// Same being them having the same ID (this allows different
|
||||
// instances of the same thing to be recognized as the same)
|
||||
return $scope.ngModel.selectedObject.getId() === $scope.domainObject.getId();
|
||||
return getId($scope.ngModel.selectedObject) === getId($scope.domainObject);
|
||||
|
||||
// TODO: Check to make sure this change doesn't break anything.
|
||||
// TODO: Check to make sure this change doesn't break
|
||||
// anything/find a better way to do this
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -180,10 +180,10 @@ define(
|
||||
},
|
||||
|
||||
/**
|
||||
* The latest search results that have been calculated. The
|
||||
* format of the returned objects are searchResult objects,
|
||||
* which have the members id, object, and score. This array
|
||||
* is updated constantly.
|
||||
* An array containing the latest search results that have been
|
||||
* calculated. The format of the returned objects are searchResult
|
||||
* objects, which have the members id, object, and score. This
|
||||
* array is updated often.
|
||||
*/
|
||||
latestResults: latestMergedResults,
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user