浏览代码

Add guard against autocompile being disabled

Alasdair Smith 8 年之前
父节点
当前提交
96d7d83b90
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      services/web/public/coffee/ide/pdf/controllers/PdfController.coffee

+ 1 - 1
services/web/public/coffee/ide/pdf/controllers/PdfController.coffee

@@ -71,7 +71,7 @@ define [
 
 		autoCompileInterval = null
 		autoCompileIfReady = () ->
-			if $scope.pdf.compiling
+			if $scope.pdf.compiling or !$scope.autocompile_enabled
 				return
 
 			# Only checking linting if syntaxValidation is on and visible to the user