/*
 * Namespace: lb
 * Root of Legal Box Scalable JavaScript Application
 *
 * Authors:
 *   o Eric Bréchemier <legalbox@eric.brechemier.name>
 *   o Marc Delhommeau <marc.delhommeau@legalbox.com>
 *
 * Copyright:
 * Legal-Box SAS (c) 2010-2011, All Rights Reserved
 *
 * License:
 * BSD License
 * http://creativecommons.org/licenses/BSD/
 *
 * Version:
 * 2011-07-04
 */
/*jslint white:false, plusplus:false */
/*global define, window */
define(function() {

  // Note: no methods defined at this level currently

  var lb = { // public API
  };

  // initialize global variable lb in browser environment,
  // for backward-compatibility
  if (window !== undefined){
    window.lb = lb;
  }

  return lb;
});

/*
 * Namespace: lb
 * Root of Legal Box Scalable JavaScript Application
 *
 * Authors:
 *   o Eric Bréchemier <legalbox@eric.brechemier.name>
 *   o Marc Delhommeau <marc.delhommeau@legalbox.com>
 *
 * Copyright:
 * Legal-Box SAS (c) 2010-2011, All Rights Reserved
 *
 * License:
 * BSD License
 * http://creativecommons.org/licenses/BSD/
 *
 * Version:
 * 2011-07-05
 */
/*jslint white:false, plusplus:false */
/*global define, window */
define(function(undefined) {

  // Note: no methods defined at this level currently

  var lb = { // public API
  };

  // initialize global variable lb in browser environment,
  // for backward-compatibility
  if (window !== undefined){
    window.lb = lb;
  }

  return lb;
});

Declare undefined as parameter to make sure it is actually undefined
Declare undefined as parameter to make sure it is actually undefined

Since undefined is a property of the global object, its value may be replaced,
e.g. due to programming mistakes:

  if (undefined = myobject){ // programming mistake which assigns undefined
    // ...
  }
