Lines Matching defs:instance

17 the end user interacts with.  As indicated below, each instance
102 YUI.GlobalConfig, and before the instance level configuration
129 // bind the specified additional modules for this instance
136 // Each instance can accept one or more configuration objects.
240 * Applies a new configuration object to the YUI instance config.
287 * Old way to apply a config to the instance (calls `applyConfig` under the hood)
297 * Initialize this YUI instance
309 * The version number of the YUI instance.
471 * Finishes the instance setup. Attaches whatever modules were defined
500 * Executes a method on a YUI instance with
503 * @param id {String} the YUI instance id.
515 var instance = instances[id], nest, m, i;
516 if (instance) {
518 m = instance;
525 return m && m.apply(instance, args);
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.
556 @return {YUI} the YUI instance.
598 * module, binding the module to the YUI instance.
614 //Check for conditional modules (in a second+ instance) and add their requirements
725 * Attaches one or more modules to the YUI instance. When this
730 * are attached to the instance. If supplied, the use callback
749 * the instance has the required functionality. If included, it
751 * @param callback.Y {YUI} The `YUI` instance created for this sandbox
770 * @return {YUI} the YUI instance.
847 * the instance has the required functionality. If included, it
1079 If called as a method on a YUI <em>instance</em>, it creates the
1080 namespace on the instance.
1094 and not others. For instance, the following will fail in some browsers
1143 * @return {YUI} this YUI instance.
1212 * Destroys the YUI instance
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
1391 * The window/frame that this instance should operate in.
1416 * the list of available languages in modules that the YUI instance uses to
1766 * YUI instance context.
1776 * is executed in the YUI instance context. Returning `true` from this
1936 * Determines whether or not the supplied item is a date instance.
2269 @return {YUI} The YUI instance.
2592 Returns the `location` object from the window/frame in which this YUI instance
2604 instance operates.
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
2797 * Adds utilities to the YUI instance for working with objects.
3040 * @return {YUI} the YUI instance.
3834 containing the actual transaction instance.
4929 * @param {Function} o.test The test function to execute, the only argument to the function is the `Y` instance
5351 * @return {YUI} YUI instance.
5417 * @return {YUI} YUI instance.
5509 Adds object inheritance and manipulation utilities to the YUI instance. This
5607 unsequester = function (instance, fn, fnArgs) {
5611 && instance[key] === replacements[key]) {
5613 instance[key] = sequestered[key];
5618 supplier.apply(instance, args);
5621 return fn.apply(instance, fnArgs);
5715 * @return {YUI} the YUI instance.
5932 * @param {Function} o.test The test function to execute, the only argument to the function is the `Y` instance
6524 * @return {RegExp} An instance of RegExp
8959 * function may optionally return an instance of the following classes to
8997 * function may optionally return an instance of the following classes to
9169 * functions. If any of the before wrappers return an instance of
9174 * provided by a wrapper function via an instance of <code>Y.Do.Halt</code> or
9378 * instance.
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
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.
10236 * If the instance has a prefix attribute and the
10237 * event type is not prefixed, the instance prefix is
10284 // detach category, full type with instance prefix, is this an after listener, short type
10564 // detachAll disabled on the Y instance.
10630 // The YUI instance handles DOM events and adaptors
10700 * 'broadcast': whether or not the YUI instance and YUI global are notified when the event is fired (false)
11013 `fire`d from any object in the YUI instance sandbox</li>
11359 // YUI instance and potentially the YUI global.
11649 * @param {DOMNode} node the DOM node to be mapped to the Node instance.
11692 * The underlying DOM node bound to the Y.Node instance
11764 * Retrieves the DOM node bound to a Node instance
11768 * @param {Node | HTMLNode} node The Node instance or an HTMLNode
11769 * @return {HTMLNode} The DOM node bound to the Node instance. If a DOM node is passed
11783 * then the Node instance is returned for chainability.
11787 * @param {any} node The Node instance or an HTMLNode
11795 } else if ((val.item && !val._nodes) || // dom collection or Node instance
11817 * (defaults to the Node instance)
11876 * @return {NodeList} A NodeList instance for the matching HTMLCollection/Array.
11881 * Returns a single Node instance bound to the node or the
11887 * @return {Node | null} a Node instance or null if no match found.
11892 * Returns a single Node instance bound to the node or the
11899 * @return {Node | null} a Node instance or null if no match found.
11903 var instance = null,
11919 instance = Y_Node._instances[uid]; // reuse exising instances
11920 cachedNode = instance ? instance._node : null;
11921 if (!instance || (cachedNode && node !== cachedNode)) { // new Node when nodes don't match
11922 instance = new Y_Node(node);
11924 Y_Node._instances[instance[UID]] = instance; // cache node
11930 return instance;
11935 * Called with instance context (this === the Node instance)
11960 * Called with instance context (this === the Node instance)
11985 * @return {String} A string representation of the Node instance
12013 * Returns an attribute value on the Node instance.
12061 * Sets an attribute on the Node instance.
12178 * @return {Node} The matching Node instance or null if not found
12196 * @return {NodeList} A NodeList instance containing the matching elements
12212 * @return {Node} Node instance or null if not found
12224 * @return {Node} Node instance or null if not found
12236 * @return {NodeList} NodeList instance bound to found siblings
12243 * Retrieves a Node instance of nodes based on the given CSS selector.
12247 * @return {Node} A Node instance for the matching HTMLElement.
12258 * @return {NodeList} A NodeList instance for the matching HTMLCollection/Array.
12304 * and does not change the node bound to the Node instance.
12344 instance;
12356 instance = Y_Node._instances[node[UID]];
12357 if (instance) {
12358 instance.destroy();
12370 * Invokes a method on the Node instance
12398 * This does not change which DOM node each Node instance refers to.
12447 * Returns the DOM node bound to the Node instance
12497 * The underlying array of DOM nodes bound to the Y.NodeList instance
12507 * Retrieves the DOM nodes bound to a NodeList instance
12511 * @param {NodeList} nodelist The NodeList instance
12518 NodeList.each = function(instance, fn, context) {
12519 var nodes = instance._nodes;
12521 Y.Array.each(nodes, fn, context || instance);
12535 instance = Y.Node._instances[node[UID]],
12539 if (!instance) {
12540 instance = NodeList._getTempNode(node);
12542 ctx = context || instance;
12544 if (result !== undefined && result !== instance) {
12595 * Retrieves the Node instance at the given index.
12599 * @return {Node} The Node instance at the given index.
12609 * the current node instance, the node's index, and the NodeList instance
12611 * Default context is the current Node instance
12615 var instance = this;
12618 return fn.call(context || node, node, index, instance);
12620 return instance;
12627 var instance = Y.Node._instances[node[UID]];
12628 if (!instance) {
12629 instance = NodeList._getTempNode(node);
12632 return fn.call(context || instance, instance, index, nodelist);
12641 * the current node instance, the node's index, and the NodeList instance
12643 * Default context is the current Node instance
12647 var instance = this;
12651 return fn.call(context, node, index, instance);
12656 * Creates a documenFragment from the nodes bound to the NodeList instance
12658 * @return {Node} a Node instance bound to the documentFragment
12665 * Returns the index of the node in the NodeList instance
12676 * Filters the NodeList instance down to only nodes matching the given selector.
12765 * Determines if the instance is bound to any nodes
12798 * Returns the DOM node bound to the Node instance
12808 /** Called on each Node instance
12814 /** Called on each Node instance
12820 /** Called on each Node instance
12826 /** Called on each Node instance
12836 /** Called on each Node instance
12845 instance,
12849 instance = Y.Node._instances[nodes[0]._yuid] || getTemp(nodes[0]);
12850 val = instance._get(attr);
12857 instance = Y.Node._instances[node._yuid];
12859 if (!instance) {
12860 instance = getTemp(node);
12863 val = instance._get(attr);
12865 val = Y.Node.scrubVal(val, instance);
13311 * @return {Node} A Node instance bound to a DOM node or fragment
13327 * @return {Node} A Node instance bound to a DOM node or fragment
13472 * Called on each Node instance
13479 /** Called on each Node instance
13486 * Called on each Node instance
13493 /** Called on each Node instance
13499 /** Called on each Node instance
13505 /** Called on each Node instance
13513 /** Called on each Node instance
13519 /** Called on each Node instance
13526 /** Called on each Node instance
13587 * Returns a NodeList instance of all HTMLElement children.
13743 args[3] = context || this; // default to NodeList instance as context
13802 * Default is the NodeList instance.
13819 * Default is the NodeList instance.
13837 * Default is the NodeList instance.
13849 * Called on each Node instance
13856 /** Called on each Node instance
14170 * @description Retrieves arbitrary data stored on a Node instance.
14238 * @description Stores arbitrary data on a Node instance.
14279 * @description Retrieves arbitrary data stored on each Node instance
14284 * @return {Array} An array containing all of the data for each Node instance.
14294 * @description Stores arbitrary data on each Node instance bound to the
14351 * the page. If this is done, you must tell the YUI instance that
15782 // Create new instance
15794 * plugin instance and delete the namepsace from the host object.
15838 * @return {Plugin} Returns a truthy value (the plugin instance) if present, or undefined if not.
15847 * instance through the "plugins" configuration property.
15939 * which should be plugged into every instance of the class by default).
16392 * which should be plugged into every instance of Node by default).
17265 * @param {Object} transaction - XHR instance for the specific transaction.
17435 * (usually the XMLHttpRequest instance). If the `arguments`
17680 (usually the XMLHttpRequest instance). If the `arguments`
17725 // an instance of IO.
17743 // an instance of IO.
17850 * <p>The JSON namespace is added to your YUI instance including static methods
18388 // run transitions mapped to this instance
19407 * @return {YUI} YUI instance.
19473 * @return {YUI} YUI instance.
19489 * If included, the dump method is added to the YUI instance.