brunschgi/terrificjs — pull request #21 by MarcDiethelm (2013-05-22 22:04:25+00:00)
Title: New module property: modName

New module property: modName (this module's property name in the Tc.Module super class).

So that when inspecting (a bunch of) modules you actually know which one you're looking at.

This also makes it possible to create a new module instance programmatically when you only have the module itself. Something like this...

`var testModInstance = testApp.registerModule($node, module.modName)`
or even this...
`var module = new Tc.Module[module.modName]([appropriate args])`

A useful test assertion is included in the commit:
`ok(module instanceof Tc.Module[module.modName], 'instance of Tc.Module[module.modName]');`