public/javascripts/yui/colorpicker/colorpicker-debug.js
function () {
            // bind all of our elements
            var o=this.OPT, 
                ids = this.get(o.IDS), 
                els = this.get(o.ELEMENTS), 
                      i, el, id;

            // Add the default value as a key for each element for easier lookup
            for (i in this.ID) {
                if (lang.hasOwnProperty(this.ID, i)) {
                    ids[this.ID[i]] = ids[i];
                }
            }

            // Check for picker element, if not there, create all of them
            el = Dom.get(ids[this.ID.PICKER_BG]);
            if (!el) {
                this._createElements();
            } else {
                this.logger.log("Using pre-existing markup");
            }

            for (i in ids) {
                if (lang.hasOwnProperty(ids, i)) {
                    // look for element
                    el = Dom.get(ids[i]);

                    // generate an id if the implementer passed in an element reference,
                    // and the element did not have an id already
                    id = Dom.generateId(el);

                    // update the id in case we generated the id
                    ids[i] = id; // key is WEBSAFE_SWATCH
                    ids[ids[i]] = id; // key is websafe_swatch

                    // store the dom ref
                    els[id] = el;
                }
            }

        }
function () {
            // bind all of our elements
            var o=this.OPT, 
                ids = this.get(o.IDS), 
                els = this.get(o.ELEMENTS), 
                      i, el, id;

            // Add the default value as a key for each element for easier lookup
            for (i in this.ID) {
                if (lang.hasOwnProperty(this.ID, i)) {
                    ids[this.ID[i]] = ids[i];
                }
            }

            // Check for picker element, if not there, create all of them
            el = Dom.get(ids[this.ID.PICKER_BG]);
            if (!el) {
                this._createElements();
            } else {
                this.logger.log("Using pre-existing markup");
            }

            for (i in ids) {
                if (lang.hasOwnProperty(ids, i)) {
                    // look for element
                    el = Dom.get(ids[i]);

                    // generate an id if the implementer passed in an element reference,
                    // and the element did not have an id already
                    id = Dom.generateId(el);

                    // update the id in case we generated the id
                    ids[i] = id; // key is WEBSAFE_SWATCH
                    ids[ids[i]] = id; // key is websafe_swatch

                    // store the dom ref
                    els[id] = el;
                }
            }

        }
function ( ) { // bind all of our elements var o = this . OPT , ids = this . get ( o . IDS ) , els = this . get ( o . ELEMENTS ) , i , el , id ; // Add the default value as a key for each element for easier lookup for ( i in this . ID ) { if ( lang . hasOwnProperty ( this . ID , i ) ) { ids [ this . ID [ i ] ] = ids [ i ] ; } } // Check for picker element, if not there, create all of them el = Dom . get ( ids [ this . ID . PICKER_BG ] ) ; if ( ! el ) { this . _createElements ( ) ; } else { this . logger . log ( "Using pre-existing markup" ) ; } for ( i in ids ) { if ( lang . hasOwnProperty ( ids , i ) ) { // look for element el = Dom . get ( ids [ i ] ) ; // generate an id if the implementer passed in an element reference, // and the element did not have an id already id = Dom . generateId ( el ) ; // update the id in case we generated the id ids [ i ] = id ; // key is WEBSAFE_SWATCH ids [ ids [ i ] ] = id ; // key is websafe_swatch // store the dom ref els [ id ] = el ; } } }
Creates any missing DOM structure.

@method _initElements
@protected
Creates any missing DOM structure .