Lines Matching defs:YUI

2  * The YUI module contains the components required for building the YUI seed
9 if (typeof YUI != 'undefined') {
10 YUI._YUI = YUI;
14 The YUI global namespace object. If YUI is already defined, the
15 existing YUI object will not be overwritten so that defined
22 YUI().use('*', function(Y) {
28 var Y = YUI();
30 Configuring the YUI object:
32 YUI({
41 by the YUI constuctor.
43 @class YUI
51 /*global YUI*/
53 var YUI = function() {
63 if (!(instanceOf(Y, YUI))) {
64 Y = new YUI();
70 YUI.GlobalConfig is a master configuration that might span
80 YUI.GlobalConfig = {
84 YUI().use('node', function(Y) {
88 YUI({
95 if (YUI.GlobalConfig) {
96 Y.applyConfig(YUI.GlobalConfig);
102 YUI.GlobalConfig, and before the instance level configuration
110 //Single global var to include before YUI seed file
115 YUI().use('node', function(Y) {
119 YUI({
137 // These are applied after YUI.GlobalConfig and YUI_Config,
190 YUI.Env.windowLoaded = true;
191 YUI.Env.DOMReady = true;
209 YUI.Env.core = Y.Array.dedupe([].concat(YUI.Env.core, [ 'loader-base', 'loader-rollup', 'loader-yui3' ]));
240 * Applies a new configuration object to the YUI instance config.
297 * Initialize this YUI instance
304 G_ENV = YUI.Env,
309 * The version number of the YUI instance.
411 if (G_ENV && Y !== YUI) {
415 } else if (YUI._YUI) {
417 G_ENV = YUI._YUI.Env;
427 delete YUI._YUI;
435 Y.constructor = YUI;
454 YUI.Env.cssStampEl = el.firstChild;
455 docEl.insertBefore(YUI.Env.cssStampEl, docEl.firstChild);
460 Y.config.base = YUI.config.base || Y.Env.getBase(Y.Env._BASE_RE);
466 Y.config.loaderPath = YUI.config.loaderPath || 'loader/loader' + filter + '.js';
479 mods = YUI.Env.mods,
481 extras = Y.config.core || [].concat(YUI.Env.core); //Clone it..
500 * Executes a method on a YUI instance with
503 * @param id {String} the YUI instance id.
532 Registers a module with the YUI global. The easiest way to create a
533 first-class YUI module is to use the YUI component build tool.
537 The build system will produce the `YUI.add` wrapper for you module, along
541 @param fn {Function} entry point into the module that is used to bind module to the YUI instance.
542 @param {YUI} fn.Y The YUI instance this module is executed in.
548 is defined. Note: modules are not often loaded this way in YUI 3,
553 supports the YUI 3 rollup system -- a module with submodules
555 config. The YUI component build tool does this for you.
556 @return {YUI} the YUI instance.
559 YUI.add('davglass', function(Y, name) {
568 var env = YUI.Env,
598 * module, binding the module to the YUI instance.
606 mods = YUI.Env.mods,
607 aliases = YUI.Env.aliases,
725 * Attaches one or more modules to the YUI instance. When this
751 * @param callback.Y {YUI} The `YUI` instance created for this sandbox
756 * YUI().use('dd', function(Y) {});
759 * YUI().use(['dd', 'node'], function(Y) {});
762 * YUI().use('*', function(Y) {});
764 * // intrinsic YUI gallery support (since 3.1.0)
765 * YUI().use('gallery-yql', function(Y) {});
767 * // intrinsic YUI 2in3 support (since 3.1.0)
768 * YUI().use('yui2-datatable', function(Y) {});
770 * @return {YUI} the YUI instance.
858 G_ENV = YUI.Env,
982 // YUI().use('*'); // bind everything available
1074 Adds a namespace object onto the YUI global if called statically.
1076 // creates YUI.your.namespace.here as nested objects
1077 YUI.namespace("your.namespace.here");
1079 If called as a method on a YUI <em>instance</em>, it creates the
1143 * @return {YUI} this YUI instance.
1164 * Generate an id that is unique among all YUI instances
1212 * Destroys the YUI instance
1237 YUI.prototype = proto;
1242 YUI[prop] = proto[prop];
1247 Static method on the Global YUI object to apply a config to all YUI instances.
1249 a global YUI config at the same time. This way they can all call `YUI.applyConfig({})` instead of
1257 YUI.applyConfig({
1265 YUI.applyConfig({
1273 YUI().use('davglass', function(Y) {
1278 YUI.applyConfig = function(o) {
1283 if (YUI.GlobalConfig) {
1284 this.prototype.applyConfig.call(this, YUI.GlobalConfig);
1289 YUI.GlobalConfig = this.config;
1293 YUI._init();
1304 YUI.Env.add = add;
1305 YUI.Env.remove = remove;
1310 exports.YUI = YUI;
1318 * the `YUI` instance. This object is supplied by the implementer
1319 * when instantiating a `YUI` instance. Some properties have default
1322 * `applyConfig()` to update the config object on a YUI instance that
1330 * Allows the YUI seed file to fetch the loader component and library
1395 * @default the window hosting YUI
1403 * @default the document hosting YUI
1407 * A list of modules that defines the YUI core (overrides the default list).
1416 * the list of available languages in modules that the YUI instance uses to
1480 * The YUI combo service base dir. Ex: `http://yui.yahooapis.com/combo?`
1496 * path for all modules. The default path for the YUI library is the
1558 * Use the YUI combo service to reduce the number of http connections
1560 * disable combo handling for YUI and all module groups configured
1615 * Callback for the 'CSSComplete' event. When dynamically loading YUI
1626 * A hash of module definitions to add to the list of YUI components.
1628 * YUI via the `use()` method. This is a hash, the key is the module
1656 * YUI({
1723 * Specifies whether or not YUI().use(...) will attempt to load CSS
1741 * The default YUI 2 version to build yui2 module urls. This is for
1742 * intrinsic YUI 2 support via the 2in3 project. Also see the '2in3'
1743 * config for pulling different revisions of the wrapped YUI 2
1752 * The 2in3 project is a deployment of the various versions of YUI 2
1753 * deployed as first-class YUI 3 modules. Eventually, the wrapper
1754 * for the modules will change (but the underlying YUI 2 code will
1766 * YUI instance context.
1776 * is executed in the YUI instance context. Returning `true` from this
1800 * When set to true, the YUI loader will expect that all modules
1801 * it is responsible for loading will be first-class YUI modules
1802 * that register themselves with the YUI global. If this is
1822 * Whether or not YUI should use native ES5 functionality when available for
1823 * features like `Y.Array.each()`, `Y.Object()`, etc. When `false`, YUI will
1832 YUI.add('yui-base', function(Y) {
1835 * YUI stub
1840 * The YUI module contains the components required for building the YUI
1848 * Provides core language utilites and extensions used throughout YUI.
1880 if the `useNativeES5` YUI config option is set to `false`.
2269 @return {YUI} The YUI instance.
2451 * The YUI module contains the components required for building the YUI
2535 YUI.Env._loaderQueue = YUI.Env._loaderQueue || new Queue();
2538 The YUI module contains the components required for building the YUI seed file.
2573 @for YUI
2592 Returns the `location` object from the window/frame in which this YUI instance
2603 @return {location} The `location` object from the window/frame in which this YUI
2609 // YUI instance before a user's config is applied; i.e. `Y.config.win` does
2676 @return {Function|Object|YUI} The receiver, or the YUI instance if the
2789 * The YUI module contains the components required for building the YUI
2797 * Adds utilities to the YUI instance for working with objects.
3040 * @return {YUI} the YUI instance.
3167 * The YUI module contains the components required for building the YUI seed
3175 * YUI user agent detection.
3191 * Static method on `YUI.Env` for parsing a UA string. Called at instantiation
3199 YUI.Env.parseUA = function(subUA) {
3577 YUI.Env.UA = o;
3585 Y.UA = YUI.Env.UA || YUI.Env.parseUA();
3586 YUI.Env.aliases = {
3627 YUI.add('get', function(Y) {
3877 future version of YUI. Use the transaction-level `abort()` method instead.
4394 YUI sandbox in the current pageview.
4401 HTMLElement nodes (native ones, not YUI Node instances) that have been inserted
4893 YUI.add('features', function(Y) {
4898 Contains the core of YUI's feature test architecture.
5228 YUI.add('intl-base', function(Y) {
5316 YUI.add('yui-log', function(Y) {
5320 * console implementations. This module is a `core` YUI module, <a href="../classes/YUI.html#method_log">it's documentation is located under the YUI class</a>.
5338 * write to the browser console if available. YUI-specific log
5344 * @for YUI
5351 * @return {YUI} YUI instance.
5357 publisher = (Y.fire) ? Y : YUI.Env.globalEvents;
5408 * minified and raw versions of the YUI files, unlike log statements.
5410 * @for YUI
5417 * @return {YUI} YUI instance.
5425 YUI.add('yui-later', function(Y) {
5428 * Provides a setTimeout/setInterval wrapper. This module is a `core` YUI module, <a href="../classes/YUI.html#method_later">it's documentation is located under the YUI class</a>.
5440 * @for YUI
5504 YUI.add('yui', function(Y){}, '@VERSION@' ,{use:['yui-base','get','features','intl-base','yui-log','yui-later']});
5506 YUI.add('oop', function(Y) {
5509 Adds object inheritance and manipulation utilities to the YUI instance. This
5510 module is required by most YUI components.
5572 @for YUI
5715 * @return {YUI} the YUI instance.
5773 // @todo cloning YUI instances doesn't currently work
5774 if (Y.instanceOf(o, YUI)) {
5896 YUI.add('features', function(Y) {
5901 Contains the core of YUI's feature test architecture.
6231 YUI.add('dom-core', function(Y) {
6604 YUI.add('dom-base', function(Y) {
7292 YUI.add('dom-style', function(Y) {
7619 YUI.add('dom-style-ie', function(Y) {
7925 YUI.add('dom-screen', function(Y) {
8536 YUI.add('selector-native', function(Y) {
8911 YUI.add('selector', function(Y) {
8917 YUI.add('event-custom-base', function(Y) {
9377 * The context the the event will fire from by default. Defaults to the YUI
9395 * If 0, this event does not broadcast. If 1, the YUI instance is notified
9396 * every time this event fires. If 2, the YUI instance and the YUI global
9547 * port YUI 2 apps.
9913 * Notifies the YUI instance if the event is configured with broadcast = 1,
9914 * and both the YUI instance and Y.Global if configured with broadcast = 2.
10486 if (Y.instanceOf(this, YUI)) {
10630 // The YUI instance handles DOM events and adaptors
10631 if (Y.instanceOf(this, YUI)) {
10700 * 'broadcast': whether or not the YUI instance and YUI global are notified when the event is fired (false)
10993 YUI.Env.globalEvents = YUI.Env.globalEvents || new ET();
10996 * Hosts YUI page level events. This is where events bubble to
11001 * @for YUI
11003 Y.Global = YUI.Env.globalEvents;
11013 `fire`d from any object in the YUI instance sandbox</li>
11059 @for YUI
11077 @for YUI
11100 @for YUI
11126 @for YUI
11131 YUI.add('event-custom-complex', function(Y) {
11359 // YUI instance and potentially the YUI global.
11630 YUI.add('node-core', function(Y) {
11877 * @for YUI
11888 * @for YUI
13200 YUI.add('node-base', function(Y) {
14322 var GLOBAL_ENV = YUI.Env;
14327 GLOBAL_ENV.remove(YUI.config.doc, 'DOMContentLoaded', GLOBAL_ENV._ready);
14330 GLOBAL_ENV.add(YUI.config.doc, 'DOMContentLoaded', GLOBAL_ENV._ready);
14333 YUI.add('event-base', function(Y) {
14347 * In YUI 3, domready subscribers will be notified immediately if
14351 * the page. If this is done, you must tell the YUI instance that
14360 * @for YUI
14367 if (YUI.Env.DOMReady) {
14370 Y.Do.before(function() { Y.fire('domready'); }, YUI.Env, '_ready');
14723 add = YUI.Env.add,
14724 remove = YUI.Env.remove,
14727 YUI.Env.windowLoaded = true;
15172 if (YUI.Env.windowLoaded) {
15361 if (Y.UA.ie && !YUI.Env.DOMReady) {
15621 if (config.injected || YUI.Env.windowLoaded) {
15663 * @for YUI
15687 * @for YUI
15698 YUI.add('pluginhost-base', function(Y) {
15876 YUI.add('pluginhost-config', function(Y) {
16006 YUI.add('event-delegate', function(Y) {
16323 * @for YUI
16329 YUI.add('node-event-delegate', function(Y) {
16383 YUI.add('node-pluginhost', function(Y) {
16442 YUI.add('node-screen', function(Y) {
16682 YUI.add('node-style', function(Y) {
16788 YUI.add('querystring-stringify-simple', function(Y) {
16849 YUI.add('io-base', function(Y) {
17267 * defined in the configuration object passed to YUI.io().
17342 * @param {Object} config Configuration object passed to YUI.io().
17721 @for YUI
17844 YUI.add('json-parse', function(Y) {
17850 * <p>The JSON namespace is added to your YUI instance including static methods
18074 YUI.add('transition', function(Y) {
18775 YUI.add('selector-css2', function(Y) {
19220 YUI.add('selector-css3', function(Y) {
19372 YUI.add('yui-log', function(Y) {
19376 * console implementations. This module is a `core` YUI module, <a href="../classes/YUI.html#method_log">it's documentation is located under the YUI class</a>.
19394 * write to the browser console if available. YUI-specific log
19400 * @for YUI
19407 * @return {YUI} YUI instance.
19413 publisher = (Y.fire) ? Y : YUI.Env.globalEvents;
19464 * minified and raw versions of the YUI files, unlike log statements.
19466 * @for YUI
19473 * @return {YUI} YUI instance.
19481 YUI.add('dump', function(Y) {
19489 * If included, the dump method is added to the YUI instance.
19509 * @for YUI
19586 YUI.add('transition-timer', function(Y) {