mozilla/browserid — comment on commit 3f53f8dda5e864ae93840124682083bb4ba759a3
File: lib/static_resources.js line 150
By lloyd:

yeah! the reason I actually made this change is that when doing:

resources = require('static-resources.js');

In code that uses static-resources.js, it *actually fucking changed* resources *inside* the module. This is not supposed to be possible in my understanding of nodejs.

Rather than yak shaving to deepen my understanding of nodejs, I made this change. So it was less about fiddle the aesthetics of your code, and more about working around crazy shit.