Fix error in $.popup

pull/385/merge
Thibaut Courouble 8 years ago
parent 2cef32dfe8
commit f9a456cefd

@ -329,11 +329,11 @@ $.requestAnimationFrame = (fn) ->
$.noop = -> $.noop = ->
$.popup = (value) -> $.popup = (value) ->
win = window.open() try
if win win = window.open()
win.opener = null if win.opener win.opener = null if win.opener
win.location = value.href or value win.location = value.href or value
else catch
window.open value.href or value, '_blank' window.open value.href or value, '_blank'
return return

Loading…
Cancel
Save