Class YAHOO

Object
   |
   +--YAHOO

class YAHOO

Constructor Summary [top]

YAHOO
The Yahoo global namespace 

Method Summary [top]

void extend (<function> subclass, <function> superclass)
Utility to set up the prototype, constructor and superclass properties to support an inheritance strategy that can chain constructors and methods. 
boolean log (<string> sMsg, <string> sCategory, <string> sSource)
Uses YAHOO.widget.Logger to output a log message, if the widget is available. 
Object namespace (<String> ns)
Returns the namespace specified and creates it if it doesn't exist  

Constructor Detail [top]

YAHOO

YAHOO ()
The Yahoo global namespace

Method Detail [top]

extend

void extend (<function> subclass, <function> superclass)
Utility to set up the prototype, constructor and superclass properties to support an inheritance strategy that can chain constructors and methods.
Parameters:
subclass - the object to modify
superclass - the object to inherit

log

boolean log (<string> sMsg, <string> sCategory, <string> sSource)
Uses YAHOO.widget.Logger to output a log message, if the widget is available.
Parameters:
sMsg - The message to log.
sCategory - The log category for the message. Default categories are "info", "warn", "error", time". Custom categories can be used as well. (opt)
sSource - The source of the the message (opt)
Returns:
True if the log operation was successful.

namespace

Object namespace (<String> ns)
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
Parameters:
ns - The name of the namespace
Returns:
A reference to the namespace object