index.js
function propagateUpstream(parentModule, shouldPropagate)
{
  // do not step on another global-define instance
  if (parentModule._globalDefine) return;

  // keep reference to the define instance
  parentModule._globalDefine = this;

  if (shouldPropagate && parentModule.parent)
  {
    this.propagateUpstream(parentModule.parent, shouldPropagate);
  }
}
function propagateUpstream(parentModule, shouldPropagate)
{
  // do not step on another global-define instance
  if (parentModule._globalDefine) return;

  // keep reference to the define instance
  parentModule._globalDefine = this;

  if (shouldPropagate && parentModule.parent)
  {
    this.propagateUpstream(parentModule.parent, shouldPropagate);
  }
}
function propagateUpstream ( parentModule , shouldPropagate ) { // do not step on another global-define instance if ( parentModule . _globalDefine ) return ; // keep reference to the define instance parentModule . _globalDefine = this ; if ( shouldPropagate && parentModule . parent ) { this . propagateUpstream ( parentModule . parent , shouldPropagate ) ; } }
propagates global-define instance upstream until it bumps into another globalDefine instance
propagates global - define instance upstream until it bumps into another globalDefine instance