~ted/lazr-js/annoying-debug-message

« back to all changes in this revision

Viewing changes to src-js/lazrjs/yui/base/base.js

  • Committer: Launchpad Patch Queue Manager
  • Date: 2010-09-09 14:20:30 UTC
  • mfrom: (182.1.3 yui-3.2)
  • Revision ID: launchpad@pqm.canonical.com-20100909142030-13w6vo0ixfysxc15
[r=beuno] Update lazr-js to yui-3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3
3
Code licensed under the BSD License:
4
4
http://developer.yahoo.com/yui/license.html
5
 
version: 3.1.2
6
 
build: 56
 
5
version: 3.2.0
 
6
build: 2676
7
7
*/
8
8
YUI.add('base-base', function(Y) {
9
9
 
228
228
         * easily configure on and after listeners as well as bubble targets during 
229
229
         * construction, prior to init.
230
230
         *
 
231
         * @private
231
232
         * @method _preInitEventCfg
232
233
         * @param {Object} config The user configuration object
233
234
         */
582
583
    Y.Base = Base;
583
584
 
584
585
 
585
 
}, '3.1.2' ,{requires:['attribute-base']});
 
586
}, '3.2.0' ,{requires:['attribute-base']});
586
587
YUI.add('base-pluginhost', function(Y) {
587
588
 
588
589
    /**
618
619
    Base.unplug = PluginHost.unplug;
619
620
 
620
621
 
621
 
}, '3.1.2' ,{requires:['base-base', 'pluginhost']});
 
622
}, '3.2.0' ,{requires:['base-base', 'pluginhost']});
622
623
YUI.add('base-build', function(Y) {
623
624
 
624
625
    /**
833
834
     * </dl>
834
835
     *
835
836
     * @method Base.build
 
837
     * @deprecated Use the more convenient Base.create and Base.mix methods instead
836
838
     * @static
837
839
     * @param {Function} name The name of the new class. Used to defined the NAME property for the new class.
838
840
     * @param {Function} main The main class on which to base the built class
858
860
     * @param {Function} name The name of the newly created class. Used to defined the NAME property for the new class.
859
861
     * @param {Function} main The base class which the new class should extend. This class needs to be Base or a class derived from base (e.g. Widget).
860
862
     * @param {Function[]} extensions The list of extensions which will be mixed into the built class.
 
863
     * @param {Object} px The set of prototype properties/methods to add to the built class.
 
864
     * @param {Object} sx The set of static properties/methods to add to the built class.
861
865
     * @return {Function} The newly created class.
862
866
     */
863
867
    Base.create = function(name, base, extensions, px, sx) {
892
896
    Base._buildCfg = {
893
897
        custom : { 
894
898
            ATTRS : function(prop, r, s) {
895
 
                r[prop] = r[prop] || {};
896
 
                if (s[prop]) {
897
 
                    Y.aggregate(r[prop], s[prop], true);
 
899
 
 
900
                r.ATTRS = r.ATTRS || {};
 
901
 
 
902
                if (s.ATTRS) {
 
903
 
 
904
                    var sAttrs = s.ATTRS,
 
905
                        rAttrs = r.ATTRS,
 
906
                        a;
 
907
 
 
908
                    for (a in sAttrs) {
 
909
                        if (sAttrs.hasOwnProperty(a)) {
 
910
                            rAttrs[a] = rAttrs[a] || {};
 
911
                            Y.mix(rAttrs[a], sAttrs[a], true);
 
912
                        }
 
913
                    }
898
914
                }
899
915
            }
900
916
        },
902
918
    };
903
919
 
904
920
 
905
 
}, '3.1.2' ,{requires:['base-base']});
906
 
 
907
 
 
908
 
YUI.add('base', function(Y){}, '3.1.2' ,{use:['base-base', 'base-pluginhost', 'base-build']});
 
921
}, '3.2.0' ,{requires:['base-base']});
 
922
 
 
923
 
 
924
YUI.add('base', function(Y){}, '3.2.0' ,{use:['base-base', 'base-pluginhost', 'base-build']});
909
925