-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoltan.js
49 lines (41 loc) · 1.19 KB
/
coltan.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
* Coltan 0.1
* (c) 2011 Daniel Luxemburg
* MIT licensed
*/
Ti.API.info('Loading `Coltan` shared resource folder');
var Coltan = {};
Coltan.VERSION = '0.1';
/**
* Use `Ti.include` instead of CommonJS `require` for now because
* of memory issues resulting from creation of additional contexts
* and questions around caching/optimization that would be relied on
* as a result of internal dependencies
*
* **TO DO:** Test different export strategies, consider `Ti.include`-ing
* into a single module file to exports, consider build script
*/
Ti.include('support/underscore.js');
Ti.include('support/backbone.js');
Ti.include('underscore-mixins.js');
Ti.include('util.js');
Ti.include('debug.js');
Ti.include('http.js');
Ti.include('geo.js');
Ti.include('ui/ui.js');
Ti.include('map/map.js');
Ti.include('events.js');
Ti.include('apps.js');
Ti.include('coltan-backbone.js');
//Coltan.APN = require('coltan/apn');
if(_.isIos()) Ti.include('apn.js');
var mods = [];
for(m in Coltan){
mods.push(m);
}
Ti.API.info('`Coltan` resources successfully loaded with the following modules: ')
Ti.API.info(mods.join(', '));
if (typeof module !== 'undefined' && module.exports) {
} else {
var exports = Coltan;
}