tinymce.full.js
function createNS(n, o) {
      var i, v;

      o = o || window;

      n = n.split('.');
      for (i = 0; i < n.length; i++) {
        v = n[i];

        if (!o[v]) {
          o[v] = {};
        }

        o = o[v];
      }

      return o;
    }
function createNS(n, o) {
      var i, v;

      o = o || window;

      n = n.split('.');
      for (i = 0; i < n.length; i++) {
        v = n[i];

        if (!o[v]) {
          o[v] = {};
        }

        o = o[v];
      }

      return o;
    }
function createNS ( n , o ) { var i , v ; o = o || window ; n = n . split ( '.' ) ; for ( i = 0 ; i < n . length ; i ++ ) { v = n [ i ] ; if ( ! o [ v ] ) { o [ v ] = { } ; } o = o [ v ] ; } return o ; }
Creates a namespace on a specific object.

@method createNS
@param {String} n Namespace to create for example a.b.c.d.
@param {Object} o Optional object to add namespace to, defaults to window.
@return {Object} New namespace object the last item in path.
@example
// Create some namespace
tinymce.createNS('tinymce.somepackage.subpackage');

// Add a singleton
var tinymce.somepackage.subpackage.SomeSingleton = {
method: function() {
// Some method
}
};
Creates a namespace on a specific object .