mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 06:38:17 +00:00
[Search] Comments and errors
Changed TreeNodeController slightly to do error checking. Also updated some comments.
This commit is contained in:
@ -171,9 +171,10 @@ define(
|
|||||||
// If this object is the same as the model's selected object
|
// If this object is the same as the model's selected object
|
||||||
// Same being them having the same ID (this allows different
|
// Same being them having the same ID (this allows different
|
||||||
// instances of the same thing to be recognized as the same)
|
// 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
|
* An array containing the latest search results that have been
|
||||||
* format of the returned objects are searchResult objects,
|
* calculated. The format of the returned objects are searchResult
|
||||||
* which have the members id, object, and score. This array
|
* objects, which have the members id, object, and score. This
|
||||||
* is updated constantly.
|
* array is updated often.
|
||||||
*/
|
*/
|
||||||
latestResults: latestMergedResults,
|
latestResults: latestMergedResults,
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user