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