inner.js 220 Bytes
Newer Older
nextime's avatar
nextime committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/**
 * @constructor
 */
function Outer() {
  /**
   * @constructor
   */
  function Inner(name) {
    /** The name of this. */
    this.name = name;
  }

  this.open = function(name) {
    return (new Inner(name));
  }
}