mozilla/fxa-content-server — pull request #1363 by shane-tomlinson (2014-07-07 11:01:56+00:00)
Title: refactor(client): Remove global variables in fxa-client.js

* Replace the global variables in fxa-client.js with instance variables.
* All view tests create their own fxa-client to avoid cross test pollution.
* One fxa-client instance is shared across views for the application.

Work done as part of the evaluation of the amount of work to replace fxa-js-client with a mock for testing. (See #1356)

fixes #1304