3
votes

Is it good practice to write all javascript "classes" as CommonJS modules within an Appcelerator Titanium Mobile app instead of using functions / object notation to create a new "class" (or how you call them in javascript anyway)?

var module = require('lib/module');

instead of

var object = new MyClass();

Are there any disadvantages?

1

1 Answers