Vestorly/torii — pull request #62 by joebartels (2014-08-18 22:25:53+00:00)
Title: [BUGFIX] deferReadiness is never rejected(or resolved) when opening app from another window/link

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

reference original(closed/unmerged) PR: https://github.com/Vestorly/torii/pull/58