Unified · Split
| @@ -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 win | 333 | win = window.open() |
| 334 | win.opener = null if win.opener | 334 | win.opener = null if win.opener |
| 335 | win.location = value.href or value | 335 | win.location = value.href or value |
| 336 | else | 336 | catch |
| 337 | window.open value.href or value, '_blank' | 337 | window.open value.href or value, '_blank' |
| 338 | return | 338 | return |
| 339 | 339 | ||