[Search] Comments and errors

Changed TreeNodeController slightly to do error
checking. Also updated some comments.
This commit is contained in:
shale 2015-07-24 13:03:18 -07:00
parent 300280e03e
commit 9143f5febd
2 changed files with 7 additions and 6 deletions

View File

@ -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
}
};
}

View File

@ -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,