index.js
1.17 KB
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
'use strict';
/**
* @fileoverview
* @author NHN.
* FE Development Lab <dl_javascript@nhn.com>
* @namespace tui.util
* @example
* // node, commonjs
* var util = require('tui-code-snippet');
* @example
* // distribution file, script
* <script src='path-to/tui-code-snippt.js'></script>
* <script>
* var util = tui.util;
* <script>
*/
var util = {};
var object = require('./object');
var extend = object.extend;
extend(util, object);
extend(util, require('./array'));
extend(util, require('./type'));
extend(util, require('./collection'));
extend(util, require('./func'));
extend(util, require('./inheritance'));
extend(util, require('./string'));
extend(util, require('./tricks'));
extend(util, require('./request'));
util.browser = require('./browser');
util.popup = require('./window');
util.formatDate = require('./formatDate');
util.defineClass = require('./defineClass');
util.defineModule = require('./defineModule');
util.defineNamespace = require('./defineNamespace');
util.CustomEvents = require('./customEvent');
util.Enum = require('./enum');
util.ExMap = require('./exMap');
util.HashMap = require('./hashMap');
util.Map = require('./map');
module.exports = util;