tinymce.full.js
function resolve(n, o) {
      var i, l;

      o = o || window;

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

        if (!o) {
          break;
        }
      }

      return o;
    }
function resolve(n, o) {
      var i, l;

      o = o || window;

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

        if (!o) {
          break;
        }
      }

      return o;
    }
function resolve ( n , o ) { var i , l ; o = o || window ; n = n . split ( '.' ) ; for ( i = 0 , l = n . length ; i < l ; i ++ ) { o = o [ n [ i ] ] ; if ( ! o ) { break ; } } return o ; }
Resolves a string and returns the object from a specific structure.

@method resolve
@param {String} n Path to resolve for example a.b.c.d.
@param {Object} o Optional object to search though, defaults to window.
@return {Object} Last object in path or null if it couldn't be resolved.
@example
// Resolve a path into an object reference
var obj = tinymce.resolve('a.b.c.d');
Resolves a string and returns the object from a specific structure .