Skip to content

Commit 2671d26

Browse files
committed
compile for #700
1 parent 71726d7 commit 2671d26

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

dist/main/atom/views/mainPanelView.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)