~bjornt/lazr-js/prefetch-yui-3.5

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-01-14 23:32:29 UTC
  • mfrom: (197.1.7 yui-3.3.0)
  • Revision ID: launchpad@pqm.canonical.com-20110114233229-r6i4cazdiiw18o7p
Upgrade to YUI 3.3.0 [r=mars]

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.2.0
6
 
build: 2676
 
5
version: 3.3.0
 
6
build: 3167
7
7
*/
8
8
YUI.add('base-base', function(Y) {
9
9
 
80
80
     */
81
81
    function Base() {
82
82
 
 
83
        // So the object can be used as a hash key (as DD does)
 
84
        Y.stamp(this);
 
85
 
83
86
        Attribute.call(this);
84
87
 
85
88
        // If Plugin.Host has been augmented [ through base-pluginhost ], setup it's
563
566
 
564
567
        /**
565
568
         * Default toString implementation. Provides the constructor NAME
566
 
         * and the instance ID.
 
569
         * and the instance guid, if set.
567
570
         *
568
571
         * @method toString
569
572
         * @return {String} String representation for this object
570
573
         */
571
574
        toString: function() {
572
 
            return this.constructor.NAME + "[" + Y.stamp(this) + "]";
 
575
            return this.name + "[" + Y.stamp(this, true) + "]";
573
576
        }
574
577
 
575
578
    };
583
586
    Y.Base = Base;
584
587
 
585
588
 
586
 
}, '3.2.0' ,{requires:['attribute-base']});
 
589
}, '3.3.0' ,{requires:['attribute-base']});
587
590
YUI.add('base-pluginhost', function(Y) {
588
591
 
589
592
    /**
619
622
    Base.unplug = PluginHost.unplug;
620
623
 
621
624
 
622
 
}, '3.2.0' ,{requires:['base-base', 'pluginhost']});
 
625
}, '3.3.0' ,{requires:['base-base', 'pluginhost']});
623
626
YUI.add('base-build', function(Y) {
624
627
 
625
628
    /**
741
744
        _ctor : function(main, cfg) {
742
745
 
743
746
           var dynamic = (cfg && false === cfg.dynamic) ? false : true,
744
 
                builtClass = (dynamic) ? build._tmpl(main) : main;
745
 
 
746
 
            builtClass._yuibuild = {
747
 
                id: null,
748
 
                exts : [],
749
 
                dynamic: dynamic
750
 
            };
 
747
               builtClass = (dynamic) ? build._tmpl(main) : main,
 
748
               buildCfg = builtClass._yuibuild;
 
749
 
 
750
            if (!buildCfg) {
 
751
                buildCfg = builtClass._yuibuild = {};
 
752
            }
 
753
 
 
754
            buildCfg.id = buildCfg.id || null;
 
755
            buildCfg.exts = buildCfg.exts || [];
 
756
            buildCfg.dynamic = dynamic;
751
757
 
752
758
            return builtClass;
753
759
        },
918
924
    };
919
925
 
920
926
 
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']});
 
927
}, '3.3.0' ,{requires:['base-base']});
 
928
 
 
929
 
 
930
YUI.add('base', function(Y){}, '3.3.0' ,{after:['attribute-complex'], use:['base-base', 'base-pluginhost', 'base-build']});
925
931