Index: openacs-4/packages/ajaxhelper/www/resources/yui/yahoo/yahoo-debug.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ajaxhelper/www/resources/yui/yahoo/yahoo-debug.js,v diff -u -r1.1 -r1.2 --- openacs-4/packages/ajaxhelper/www/resources/yui/yahoo/yahoo-debug.js 21 Oct 2006 06:15:00 -0000 1.1 +++ openacs-4/packages/ajaxhelper/www/resources/yui/yahoo/yahoo-debug.js 25 Dec 2006 16:40:04 -0000 1.2 @@ -1,68 +1,80 @@ - /* Copyright (c) 2006, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.net/yui/license.txt -version: 0.11.3 +version: 0.12.1 */ - /** - * The Yahoo global namespace - * @constructor + * The YAHOO object is the single global object used by YUI Library. It + * contains utility function for setting up namespaces, inheritance, and + * logging. YAHOO.util, YAHOO.widget, and YAHOO.example are namespaces + * created automatically for and used by the library. + * @module yahoo + * @title YAHOO Global */ -window.YAHOO = window.YAHOO || {}; +if (typeof YAHOO == "undefined") { + /** + * The YAHOO global namespace object + * @class YAHOO + * @static + */ + var YAHOO = {}; +} + /** * Returns the namespace specified and creates it if it doesn't exist - * + *
* YAHOO.namespace("property.package"); * YAHOO.namespace("YAHOO.property.package"); - * + ** Either of the above would create YAHOO.property, then * YAHOO.property.package * * Be careful when naming packages. Reserved words may work in some browsers * and not others. For instance, the following will fail in Safari: - * + *
* YAHOO.namespace("really.long.nested.namespace"); - * + ** This fails because "long" is a future reserved word in ECMAScript * - * @param {String} ns The name of the namespace - * @return {Object} A reference to the namespace object + * @method namespace + * @static + * @param {String*} arguments 1-n namespaces to create + * @return {Object} A reference to the last namespace object created */ -YAHOO.namespace = function(ns) { +YAHOO.namespace = function() { + var a=arguments, o=null, i, j, d; + for (i=0; i