Update comment

Signed-off-by: Daniel Landau <daniel@landau.fi>
This commit is contained in:
Daniel Landau 2017-01-06 18:34:31 +02:00
parent dd871cf235
commit 953a3dcb7c
1 changed files with 1 additions and 2 deletions

View File

@ -133,8 +133,7 @@ angular.module('contactsApp')
// Wait for ctrl.contactList to be updated, load the contact requested in the URL if any, and
// load full details for the probably initially visible contacts.
// Then kill the watch.
// Don't blindly load the first contact as that is a heavy operation that hangs the browser, preventing
// for example searching while the DOM is updated
// Don't blindly load the first contact as that is a heavy operation
var unbindListWatch = $scope.$watch('ctrl.contactList', function() {
if(ctrl.contactList && ctrl.contactList.length > 0) {
// Check if a specific uid is requested