add check to make sure user hasnt turned of syntax validation before stopping autocompile

This commit is contained in:
Nate Stemen 2018-07-23 12:07:05 -04:00
parent 13950e12f6
commit 8d83da2535

View file

@ -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