Procházet zdrojové kódy

added comment for background polling change

Brian Gough před 11 roky
rodič
revize
994b307e3f

+ 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()