Vestorly/torii — pull request #58 by joebartels (2014-08-13 22:51:25+00:00)
Title: opening app from another window/link hangs the app

issue:
opening an app that uses torii from another window/link (with `target="_blank"`) causes the app to hang (waiting for `application.advanceReadiness`).. It mistakenly thinks the app is a popup since `window.opener` isn't `null`

A possible sol'n is to also check whether `window.name !== ""`
Because torii appears to name the window when it opens a popup, checking if a name doesn't exist could be a good way to indicate that the app isn't in a popup triggered by torii

you can see a repro just by adding `target="_blank"` to this this `href`:
http://vestorly.github.io/torii/demo.html