forked from egorFiNE/node-extjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
39 lines (31 loc) · 1.06 KB
/
index.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
Ext = {};
var ExtLoader = function() {
var extCorePath=__dirname+'/lib/Ext/core/src/';
this.load = function () {
require(extCorePath+'Ext.js');
require(extCorePath+'version/Version.js');
require(extCorePath+'lang/Array.js');
require(extCorePath+'lang/Date.js');
require(extCorePath+'lang/Function.js');
require(extCorePath+'lang/Number.js');
require(extCorePath+'lang/Object.js');
require(extCorePath+'lang/String.js');
require(extCorePath+'class/Base.js');
require(extCorePath+'class/Class.js');
require(extCorePath+'class/ClassManager.js');
require(extCorePath+'lang/Error.js');
require(extCorePath+'class/Loader.js');
require(extCorePath+'util/Format.js');
require(extCorePath+'util/DelayedTask.js');
require(extCorePath+'util/Event.js');
require(__dirname+'/Ext-more-srv-4.1.0.js');
Ext.Loader.config.enabled = true;
Ext.Loader.setPath('Ext', __dirname+'/lib/Ext');
global.__defineGetter__('window', function() {
return {};
});
Ext.require('Ext.ModelManager');
Ext.require('Ext.data.Store');
}
}
new ExtLoader().load();