public/javascripts/yui/container/container.js
function (el, userConfig) {


            Tooltip.superclass.init.call(this, el);

            this.beforeInitEvent.fire(Tooltip);

            Dom.addClass(this.element, Tooltip.CSS_TOOLTIP);

            if (userConfig) {
                this.cfg.applyConfig(userConfig, true);
            }

            this.cfg.queueProperty("visible", false);
            this.cfg.queueProperty("constraintoviewport", true);

            this.setBody("");

            this.subscribe("changeContent", setWidthToOffsetWidth);
            this.subscribe("init", onInit);
            this.subscribe("render", this.onRender);

            this.initEvent.fire(Tooltip);
        }
function (el, userConfig) {


            Tooltip.superclass.init.call(this, el);

            this.beforeInitEvent.fire(Tooltip);

            Dom.addClass(this.element, Tooltip.CSS_TOOLTIP);

            if (userConfig) {
                this.cfg.applyConfig(userConfig, true);
            }

            this.cfg.queueProperty("visible", false);
            this.cfg.queueProperty("constraintoviewport", true);

            this.setBody("");

            this.subscribe("changeContent", setWidthToOffsetWidth);
            this.subscribe("init", onInit);
            this.subscribe("render", this.onRender);

            this.initEvent.fire(Tooltip);
        }
function ( el , userConfig ) { Tooltip . superclass . init . call ( this , el ) ; this . beforeInitEvent . fire ( Tooltip ) ; Dom . addClass ( this . element , Tooltip . CSS_TOOLTIP ) ; if ( userConfig ) { this . cfg . applyConfig ( userConfig , true ) ; } this . cfg . queueProperty ( "visible" , false ) ; this . cfg . queueProperty ( "constraintoviewport" , true ) ; this . setBody ( "" ) ; this . subscribe ( "changeContent" , setWidthToOffsetWidth ) ; this . subscribe ( "init" , onInit ) ; this . subscribe ( "render" , this . onRender ) ; this . initEvent . fire ( Tooltip ) ; }
The Tooltip initialization method. This method is automatically
called by the constructor. A Tooltip is automatically rendered by
the init method, and it also is set to be invisible by default,
and constrained to viewport by default as well.
@method init
@param {String} el The element ID representing the Tooltip <em>OR</em>
@param {HTMLElement} el The element representing the Tooltip
@param {Object} userConfig The configuration object literal
containing the configuration that should be set for this Tooltip.
See configuration documentation for more details.
The Tooltip initialization method . This method is automatically called by the constructor . A Tooltip is automatically rendered by the init method and it also is set to be invisible by default and constrained to viewport by default as well .