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']});