Explorar el Código

replace $timeout by setTimeout in pdf viewer update

Brian hace 12 años
padre
commit
62d5916883

+ 1 - 1
services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee

@@ -283,7 +283,7 @@ define [
 						ctrl.setScale(scale, h, w).then () ->
 						ctrl.setScale(scale, h, w).then () ->
 							spinner.remove(element)
 							spinner.remove(element)
 							ctrl.redraw(origposition)
 							ctrl.redraw(origposition)
-							$timeout renderVisiblePages, 0
+							setTimeout renderVisiblePages, 0
 
 
 				checkElementReady = () ->
 				checkElementReady = () ->
 					# if element is zero-sized keep checking until it is ready
 					# if element is zero-sized keep checking until it is ready