Просмотр исходного кода

Force return true on a jquery handler; returning falsy values may have unexpected results.

Paulo Reis 9 лет назад
Родитель
Сommit
af2cbf5a51
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      services/web/public/coffee/ide/pdfng/directives/pdfViewer.coffee

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

@@ -432,6 +432,7 @@ define [
 						# if we still have a selection we need to keep the handler going
 						# if we still have a selection we need to keep the handler going
 						if not removedClass then _setMouseUpHandler()
 						if not removedClass then _setMouseUpHandler()
 					, 10
 					, 10
+					return true
 
 
 				_removeClassIfNoSelection = () ->
 				_removeClassIfNoSelection = () ->
 					if _hasSelection()
 					if _hasSelection()