rem: this.maskframe = getBaseTagClass(this.baseelement, 'iframe', 'kupu-maskframe'); 
context:     this.init = function(tool, xsluri, libsuri, searchuri, baseelement, selecturi) {        /* This method is there to thin out the constructor and to be           able to inherit it in sub-prototypes. Don't confuse this           method with the component initializer (initialize()).        */        // these are used in the XSLT. Maybe they should be        // parameterized or something, but we depend on so many other        // things implicitly anyway...        this.drawerid = 'kupu-librarydrawer';        this.librariespanelid = 'kupu-librariespanel';        this.resourcespanelid = 'kupu-resourcespanel';        this.propertiespanelid = 'kupu-propertiespanel';        this.breadcrumbsid = 'kupu-breadcrumbs';        if (baseelement) {            this.baseelement = getFromSelector(baseelement);        } else {            this.baseelement = getBaseTagClass(document.body, 'div', 'kupu-librarydrawer-parent');        }        this.anchorframe = getBaseTagClass(this.baseelement, 'iframe', 'kupu-anchorframe');        this.maskframe = getBaseTagClass(this.baseelement, 'iframe', 'kupu-maskframe');        var e;        if (!this.maskframe) {            e = this.maskframe = newElement('iframe',                {'className':'kupu-maskframe','src':"javascript:false;", 'frameBorder':"0", 'scrolling':"no" });            var style = e.style;            style.display = 'none';            this.baseelement.insertBefore(e, this.baseelement.firstChild);        }        this.tool = tool;        this.element = document.getElementById(this.drawerid);        if (!this.element) {            e = document.createElement('div');            e.id = this.drawerid;            e.className = 'kupu-drawer '+this.drawerid;            this.baseelement.appendChild(e);            this.element = e;        }        this.shared.xsluri = xsluri;        this.libsuri = libsuri;        this.searchuri = searchuri;        this.selecturi = selecturi;                // marker that gets set when a new image has been uploaded        this.shared.newimages = null;        // the following vars will be available after this.initialize()        // has been called            // this will be filled by this._libXslCallback()        this.shared.xsl = null;        // this will be filled by this.loadLibraries(), which is called         // somewhere further down the chain starting with         // this._libsXslCallback()        this.xmldata = null;    };
meta: 2380	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2380/8d967aaa6d4f0904d82d747ea414f97cc4d5d1a3/kupudrawers.js/buggy/kupu/common/kupudrawers.js