History

Fix error in $.popup

Thibaut Courouble committed 9 years ago

Commit f9a456c1 parent 2cef32d1 file · +3 −3Browse files

Showing the changes to assets/javascripts (1 of 1 file). Show all

Unified · Split

assets/javascripts/lib/util.coffee+3−3
@@ -329,11 +329,11 @@ $.requestAnimationFrame = (fn) -> · 328 unmodified lines
329329 $.noop = ->
330330
331331 $.popup = (value) ->
332− win = window.open()
333− if win
332+ try
333+ win = window.open()
334334 win.opener = null if win.opener
335335 win.location = value.href or value
336− else
336+ catch
337337 window.open value.href or value, '_blank'
338338 return
339339

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t