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
329$.noop = ->329$.noop = ->
330 330
331$.popup = (value) ->331$.popup = (value) ->
332 win = window.open()332 try
333 if win333 win = window.open()
334 win.opener = null if win.opener334 win.opener = null if win.opener
335 win.location = value.href or value335 win.location = value.href or value
336 else336 catch
337 window.open value.href or value, '_blank'337 window.open value.href or value, '_blank'
338 return338 return
339 339

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