History

Fix error in $.popup

Thibaut Courouble committed 9 years ago

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

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