fix pdf loadcount (no ?: operator in coffeescript)

This commit is contained in:
Brian Gough 2015-01-26 14:00:42 +00:00
parent 1a8438be5f
commit 182dfabbae

View file

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