 						scope.loading = true
 						scope.loaded = false
 						scope.progress = 1
-						# console.log 'pdfSrc =', url
 						initializePosition()
 						flashControls()
-						# pdfListView
-						#		.loadPdf(url, onProgress)
-						#		.then () ->
-						#			scope.$apply () ->
-						#				scope.loading = false
-						#				delete scope.progress
-						#				initializePosition()
-						#				flashControls()
-				
+
 				scope.$on "loaded", () ->
 					scope.loaded = true
 					scope.progress = 100

						scope.loading = false
						delete scope.progress
					, 500

				#scope.$watch "highlights", (areas) ->
					# console.log 'got HIGHLIGHTS in pdfJS', areas
					
					# return if !areas?
					# highlights = for area in areas or []
					# 	{
					# 		page: area.page
					# 		highlight:
					# 			left: area.h
					# 			top: area.v
					# 			height: area.height
					# 			width: area.width
					# 	}

					# if highlights.length > 0
					# 	first = highlights[0]
					# 	position = {
					# 		page: first.page
					# 		offset:
					# 			left: first.highlight.left
					# 			top: first.highlight.top - 80
					# 	}
					# 	console.log 'position is', position, 'in highlights'
					# 	scope.pleaseJumpTo = position
					# pdfListView.clearHighlights()
					# pdfListView.setHighlights(highlights, true)

					# setTimeout () =>
					#		pdfListView.clearHighlights()
					# , 1000

				scope.fitToHeight = () ->
					scale = angular.copy (scope.scale)

							offset:
								"top": +position.offset.top
								"left": +position.offset.left

					scope.$on "$destroy", () =>
						localStorage "pdf.scale", scope.scale
