From 8d83da2535516f928894a57009c75fab8e696bc3 Mon Sep 17 00:00:00 2001 From: Nate Stemen Date: Mon, 23 Jul 2018 12:07:05 -0400 Subject: [PATCH] add check to make sure user hasnt turned of syntax validation before stopping autocompile --- .../web/public/coffee/ide/pdf/controllers/PdfController.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee index a9e95ac6ec..389631c0a7 100644 --- a/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee +++ b/services/web/public/coffee/ide/pdf/controllers/PdfController.coffee @@ -93,7 +93,7 @@ define [ # don't want to compile as soon as it is fixed, so reset the timeout. $scope.startedTryingAutoCompileAt = Date.now() $scope.docLastChangedAt = Date.now() - if autoCompileLintingError + if autoCompileLintingError and $scope.stop_on_validation_error return # If there's a longish compile, don't compile immediately after if user is still typing