Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dbankier/tiglobal

A global namespace example for CommonJS
https://github.com/dbankier/tiglobal

Last synced: about 2 months ago
JSON representation

A global namespace example for CommonJS

Awesome Lists containing this project

README

        

Disclaimer: I prefer to use a pure CommonJS architecture, but those who are migrating a large project from using a global name space and/or want to use a combined architecture here is a trick you can use.

See: http://developer.appcelerator.com/question/129343/calling-objects-in-global-scope-from-a-commonjs-module-bug#comment-106919