Joose/Joose — Issue #9: [node.js] Singleton is not cross-module
Author: ryukbk
Created: 2011-10-31 02:19:56+00:00
State: open

1. Create a node module in which a Joose singleton class is defined.
2. Require the module above in another module
3. Create an instance of the singleton class
4. Require the module in (1) in yet another module and repeat (2) and (3)

Actually the instance created in (4) is new and is different from the one created in (3).