mozilla/browserid — pull request #2584 by seanmonstar (2012-10-11 23:01:25+00:00)
Title: Fix issues with internal.get API

1. On a slower domain, like an awsbox, there was a timing issue. They didn't know when it was safe to call `internal.get`, since the `dialog` was not ready until after the `session_context` returned from the cookie check.
2. B2G was passing in a `WrappedJSObect` for options, which we then tried to append some properties to as defaults. This caused permission errors, so now we create a local copy using `_.extend()`.

@shane-tomlinson Feel free to tell me that the polling is dirty (it feels a bit dirty), but these commits are currently on https://b2g.personatest.org and working for them.

fixes #2580