1 /***************************************
  2  * Copyright 2011, 2012 GlobWeb contributors.
  3  *
  4  * This file is part of GlobWeb.
  5  *
  6  * GlobWeb is free software: you can redistribute it and/or modify
  7  * it under the terms of the GNU Lesser General Public License as published by
  8  * the Free Software Foundation, version 3 of the License, or
  9  * (at your option) any later version.
 10  *
 11  * GlobWeb is distributed in the hope that it will be useful,
 12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 14  * GNU Lesser General Public License for more details.
 15  *
 16  * You should have received a copy of the GNU General Public License
 17  * along with GlobWeb. If not, see <http://www.gnu.org/licenses/>.
 18  ***************************************/
 19  
 20  define ( function() {
 21  
 22  var Utils = {};
 23  
 24  /** 
 25   * Inherits from an object
 26   */
 27 Utils.inherits = function(base, sub) 
 28 {
 29 	function tempCtor() {}
 30 	tempCtor.prototype = base.prototype;
 31 	sub.prototype = new tempCtor();
 32 	sub.prototype.constructor = sub;
 33 }
 34 
 35 return Utils;
 36 
 37 });
 38