Curiousity about project structure
iamdriz opened this issue · comments
Hi, this isn't actual an issue but a question about how you have structured your code, so apologies.
In short I'm working on a project that is currently structured using object literals and would benefit greatly from being re-structured to allow instances to be created. Looking through your code I noticed you use a mixture of create classes using Rickshaw.Class.create
and keeping the object literal structure e.g. https://github.com/shutterstock/rickshaw/blob/master/src/js/Rickshaw.Graph.Ajax.js#L3 and creating instance objects directly e.g. https://github.com/shutterstock/rickshaw/blob/master/src/js/Rickshaw.Graph.js#L3 I was curious what the reasons for doing it directly rather than using Class.create
? My second question is what's the use of the namespace method? I see you call it before every file but don't understand it's use?
Thanks.