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

« back to all changes in this revision

Viewing changes to src-js/lazrjs/yui/base/base-build-debug.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-build', function(Y) {
9
9
 
219
219
     * </dl>
220
220
     *
221
221
     * @method Base.build
 
222
     * @deprecated Use the more convenient Base.create and Base.mix methods instead
222
223
     * @static
223
224
     * @param {Function} name The name of the new class. Used to defined the NAME property for the new class.
224
225
     * @param {Function} main The main class on which to base the built class
244
245
     * @param {Function} name The name of the newly created class. Used to defined the NAME property for the new class.
245
246
     * @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).
246
247
     * @param {Function[]} extensions The list of extensions which will be mixed into the built class.
 
248
     * @param {Object} px The set of prototype properties/methods to add to the built class.
 
249
     * @param {Object} sx The set of static properties/methods to add to the built class.
247
250
     * @return {Function} The newly created class.
248
251
     */
249
252
    Base.create = function(name, base, extensions, px, sx) {
278
281
    Base._buildCfg = {
279
282
        custom : { 
280
283
            ATTRS : function(prop, r, s) {
281
 
                r[prop] = r[prop] || {};
282
 
                if (s[prop]) {
283
 
                    Y.aggregate(r[prop], s[prop], true);
 
284
 
 
285
                r.ATTRS = r.ATTRS || {};
 
286
 
 
287
                if (s.ATTRS) {
 
288
 
 
289
                    var sAttrs = s.ATTRS,
 
290
                        rAttrs = r.ATTRS,
 
291
                        a;
 
292
 
 
293
                    for (a in sAttrs) {
 
294
                        if (sAttrs.hasOwnProperty(a)) {
 
295
                            rAttrs[a] = rAttrs[a] || {};
 
296
                            Y.mix(rAttrs[a], sAttrs[a], true);
 
297
                        }
 
298
                    }
284
299
                }
285
300
            }
286
301
        },
288
303
    };
289
304
 
290
305
 
291
 
}, '3.1.2' ,{requires:['base-base']});
 
306
}, '3.2.0' ,{requires:['base-base']});