replace $timeout by setTimeout in pdf viewer update

This commit is contained in:
Brian 2015-01-20 21:06:53 +00:00
parent ed6eedd9e2
commit 62d5916883

View file

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