From 182dfabbae3701469461b7324ee668084983984c Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 26 Jan 2015 14:00:42 +0000 Subject: [PATCH] fix pdf loadcount (no ?: operator in coffeescript) --- .../web/public/coffee/ide/pdfng/directives/pdfViewer.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee b/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee index 7dfda722db..a7a4ab4ceb 100644 --- a/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee +++ b/services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee @@ -25,7 +25,7 @@ define [ # $scope.pages = [] $scope.document.destroy() if $scope.document? - $scope.loadCount = $scope.loadCount? ? $scope.loadCount + 1 : 1 + $scope.loadCount = if $scope.loadCount? then $scope.loadCount + 1 else 1 # TODO need a proper url manipulation library to add to query string $scope.document = new PDFRenderer($scope.pdfSrc + '&pdfng=true' , { scale: 1,