Module Conventions - Part 2 - Naming Conventions
This should be a quick blog entry to document some of the conventions I have used in the framework to get a handle on Javascript module management for model addins. Element Naming Convention As discussed here , all the element based creator functions for module addins are available at the global scope, so every class knows about every other class, hence polluting the global namespace. Therefore the naming of classes needs to be carefully considered to avoid clashes. The scheme I have used is to build the namespace for each module into the name of the element. For example, the module with namespace "ser.ea.element" is called "ser_ea_element". That is, the dots (.) have been replaced by dashes (_). I'm not entirely happy with this workaround. I've got a few ideas to have something different but they will probably require further customisation within EA, and a fair amount of experimentation. For the moment, this naming workaround will suffice.