src/n13.js
/**
         * @private
         * This method inserts specified class(file) into the DOM. It creates <script> tag for that.
         * It works only for our classes. For example it doesn't work for Backbone.Model or any third party classes.
         * @param {String} cl Name of the class
         */
@private
This method inserts specified class(file) into the DOM. It creates .
It works only for our classes. For example it doesn't work for Backbone.Model or any third party classes.
@param {String} cl Name of the class
@private This method inserts specified class ( file ) into the DOM . It creates . It works only for our classes . For example it doesn ' t work for Backbone . Model or any third party classes . @param { String } cl Name of the class
function insertScript(cl) {
            if (_isN13Class(cl) && !_loadClasses[cl]) {
                var node = document.createElement('script');
                var head = document.getElementsByTagName('head')[0] || document.firstChild;
                node.type    = 'text/javascript';
                node.charset = 'utf-8';
                node.async   = true;
                node.src     = baseUrl + _config.appRoot[1] + '/' + _classToFile(cl) + '.js' + (_config.cache ? '?u=' + (new Date()).getTime() : '');
                head.appendChild(node);
                _filesLoading++;
                _loadClasses[cl] = (new Date()).getTime();
            }
        }
function insertScript ( cl ) { if ( _isN13Class ( cl ) && ! _loadClasses [ cl ] ) { var node = document . createElement ( 'script' ) ; var head = document . getElementsByTagName ( 'head' ) [ 0 ] || document . firstChild ; node . type = 'text/javascript' ; node . charset = 'utf-8' ; node . async = true ; node . src = baseUrl + _config . appRoot [ 1 ] + '/' + _classToFile ( cl ) + '.js' + ( _config . cache ? '?u=' + ( new Date ( ) ) . getTime ( ) : '' ) ; head . appendChild ( node ) ; _filesLoading ++ ; _loadClasses [ cl ] = ( new Date ( ) ) . getTime ( ) ; } }
@private
 This method inserts specified class(file) into the DOM.
@private This method inserts specified class ( file ) into the DOM .