소스 검색

added comment for background polling change

Brian Gough 11 년 전
부모
커밋
994b307e3f
1개의 변경된 파일과 2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      services/web/public/coffee/ide/editor/controllers/SavingNotificationController.coffee

+ 2 - 0
services/web/public/coffee/ide/editor/controllers/SavingNotificationController.coffee

@@ -27,6 +27,8 @@ define [
 							doc: ide.fileTreeManager.findEntityById(doc_id)
 						}
 
+			# for performance, only update the display if the old or new
+			# statuses have any unsaved files
 			if _.size(newStatus) or _.size(oldStatus)
 				$scope.docSavingStatus = newStatus
 				$scope.$apply()