index.js 1.17 KB
'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;