mozilla/togetherjs — pull request #913 by pindexis (2013-11-21 17:10:12+00:00)
Title: prevent configuration loading when closing TogetherJS

right now, if someone click the togetherjs button to close it and some closed variables are present, an exception will be thrown since TogetherJS() will load config before closing, I've altered that behavior by checking the running status in the beginning of the function(no need to reload config when togetherJS is being shutdown).

the other test in Config function is to make sure that closing and reopening TogetherJS does not fire the exception(since configuration will be reloaded).