Unified · Split
| @@ -329,8 +329,11 @@ $.noop = -> · 328 unmodified lines | ||
| 329 | 329 | |
| 330 | 330 | $.popup = (value) -> |
| 331 | 331 | win = window.open() |
| 332 | − win.opener = null if win.opener | |
| 333 | − win.location = value.href or value | |
| 332 | + if win | |
| 333 | + win.opener = null if win.opener | |
| 334 | + win.location = value.href or value | |
| 335 | + else | |
| 336 | + window.open value.href or value, '_blank' | |
| 334 | 337 | return |
| 335 | 338 | |
| 336 | 339 | $.isTouchScreen = -> |