From 994b307e3fa2da8cb50a777b6e48012281e7d3ce Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 26 Jan 2015 16:06:50 +0000 Subject: [PATCH] added comment for background polling change --- .../ide/editor/controllers/SavingNotificationController.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/web/public/coffee/ide/editor/controllers/SavingNotificationController.coffee b/services/web/public/coffee/ide/editor/controllers/SavingNotificationController.coffee index c59e717407..3629939798 100644 --- a/services/web/public/coffee/ide/editor/controllers/SavingNotificationController.coffee +++ b/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()