File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -311,6 +311,7 @@ var MainPanelView = (function (_super) {
311311 } ;
312312 MainPanelView . prototype . clearError = function ( ) {
313313 this . clearedError = true ;
314+ this . clearSummary ( ) ;
314315 this . errorBody . empty ( ) ;
315316 } ;
316317 MainPanelView . prototype . addError = function ( view ) {
@@ -330,13 +331,17 @@ var MainPanelView = (function (_super) {
330331 handler ( this . summary ) ;
331332 }
332333 } ;
334+ MainPanelView . prototype . clearSummary = function ( ) {
335+ this . summary . html ( '' ) ;
336+ this . summary . off ( ) ;
337+ } ;
333338 MainPanelView . prototype . setErrorPanelErrorCount = function ( fileErrorCount , totalErrorCount ) {
334339 var title = panelHeaders . error + " ( <span class=\"text-success\">No Errors</span> )" ;
335340 if ( totalErrorCount > 0 ) {
336341 title = panelHeaders . error + " (\n <span class=\"text-highlight\" style=\"font-weight: bold\"> " + fileErrorCount + " </span>\n <span class=\"text-error\" style=\"font-weight: bold;\"> file" + ( fileErrorCount === 1 ? "" : "s" ) + " </span>\n <span class=\"text-highlight\" style=\"font-weight: bold\"> " + totalErrorCount + " </span>\n <span class=\"text-error\" style=\"font-weight: bold;\"> error" + ( totalErrorCount === 1 ? "" : "s" ) + " </span>\n )" ;
337342 }
338343 else {
339- this . summary . html ( '' ) ;
344+ this . clearSummary ( ) ;
340345 this . errorBody . html ( '<span class="text-success">No errors in open files \u2665</span>' ) ;
341346 }
342347 this . errorPanelBtn . html ( title ) ;
You can’t perform that action at this time.
0 commit comments