src/cm/media/js/lib/yui/yui_3.0.0b1/api/yui-object.js.html
changeset 0 40c8f766c9b8
equal deleted inserted replaced
-1:000000000000 0:40c8f766c9b8
       
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
       
     2 <html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#">
       
     3 <head>
       
     4     <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
       
     5 	<title>API: yui   yui-object.js  (YUI Library)</title>
       
     6 
       
     7 	<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" />
       
     8 	<link rel="stylesheet" type="text/css" href="assets/api.css" />
       
     9 
       
    10     <script type="text/javascript" src="assets/api-js"></script>
       
    11     <script type="text/javascript" src="assets/ac-js"></script>
       
    12 </head>
       
    13 
       
    14 <body id="yahoo-com">
       
    15 
       
    16 <div id="doc3" class="yui-t2">
       
    17 	<div id="hd">
       
    18         <h1><a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a></h1>
       
    19         <h3>yui&nbsp; <span class="subtitle">3.0.0b1</span></h3>
       
    20         <a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> 
       
    21             &gt; <a href="./module_yui.html" title="yui">yui</a>
       
    22                 
       
    23                  &gt; yui-object.js (source view) 
       
    24         <form onsubmit="return false">
       
    25             <div id="propertysearch">
       
    26                 Search: <input autocomplete="off" id="searchinput" />
       
    27                 <div id="searchresults">
       
    28                     &nbsp;
       
    29                 </div>
       
    30             </div>
       
    31         </form>
       
    32 	</div>
       
    33 
       
    34 	<div id="bd">
       
    35 		<div id="yui-main">
       
    36 			<div class="yui-b">
       
    37             <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form">
       
    38                 <fieldset>
       
    39                     <legend>Filters</legend>
       
    40                 <span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span>
       
    41                 <span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span>
       
    42                 <span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span>
       
    43                 </fieldset>
       
    44             </form>
       
    45 
       
    46                     <div id="srcout">
       
    47                         <style>
       
    48                             #doc3 .classopts { display:none; }
       
    49                         </style>
       
    50 <div class="highlight" ><pre><span class="o">(</span><span class="k">function</span><span class="o">()</span> <span class="o">{</span>
       
    51 
       
    52 <span class="c">/**</span>
       
    53 <span class="c"> * Adds the following Object utilities to the YUI instance</span>
       
    54 <span class="c"> * @class Object</span>
       
    55 <span class="c"> */</span>
       
    56 
       
    57 <span class="c">/**</span>
       
    58 <span class="c"> * Y.Object(o) returns a new object based upon the supplied object.  </span>
       
    59 <span class="c"> * @TODO Use native Object.create() when available</span>
       
    60 <span class="c"> * @method ()</span>
       
    61 <span class="c"> * @static</span>
       
    62 <span class="c"> * @param o the supplier object</span>
       
    63 <span class="c"> * @return {Object} the new object</span>
       
    64 <span class="c"> */</span>
       
    65 <span class="nx">Y</span><span class="o">.</span><span class="nb">Object</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">o</span><span class="o">)</span> <span class="o">{</span>
       
    66     <span class="k">var</span> <span class="nx">F</span> <span class="o">=</span> <span class="k">function</span><span class="o">()</span> <span class="o">{};</span>
       
    67     <span class="nx">F</span><span class="o">.</span><span class="nx">prototype</span> <span class="o">=</span> <span class="nx">o</span><span class="o">;</span>
       
    68     <span class="k">return</span> <span class="k">new</span> <span class="nx">F</span><span class="o">();</span>
       
    69 <span class="o">};</span> 
       
    70 
       
    71 <span class="k">var</span> <span class="nx">O</span> <span class="o">=</span> <span class="nx">Y</span><span class="o">.</span><span class="nb">Object</span><span class="o">,</span>
       
    72 
       
    73 <span class="nx">UNDEFINED</span> <span class="o">=</span> <span class="kc">undefined</span><span class="o">,</span>
       
    74 
       
    75 <span class="c">/**</span>
       
    76 <span class="c"> * Extracts the keys, values, or size from an object</span>
       
    77 <span class="c"> * </span>
       
    78 <span class="c"> * @method _extract</span>
       
    79 <span class="c"> * @param o the object</span>
       
    80 <span class="c"> * @param what what to extract (0: keys, 1: values, 2: size)</span>
       
    81 <span class="c"> * @return {boolean|Array} the extracted info</span>
       
    82 <span class="c"> * @static</span>
       
    83 <span class="c"> * @private</span>
       
    84 <span class="c"> */</span>
       
    85 <span class="nx">_extract</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">o</span><span class="o">,</span> <span class="nx">what</span><span class="o">)</span> <span class="o">{</span>
       
    86     <span class="k">var</span> <span class="nx">count</span> <span class="o">=</span> <span class="o">(</span><span class="nx">what</span> <span class="o">===</span> <span class="m">2</span><span class="o">),</span> <span class="nx">out</span> <span class="o">=</span> <span class="o">(</span><span class="nx">count</span><span class="o">)</span> <span class="o">?</span> <span class="m">0</span> <span class="o">:</span> <span class="o">[],</span> <span class="nx">i</span><span class="o">;</span>
       
    87 
       
    88     <span class="k">for</span> <span class="o">(</span><span class="nx">i</span> <span class="k">in</span> <span class="nx">o</span><span class="o">)</span> <span class="o">{</span>
       
    89         <span class="k">if</span> <span class="o">(</span><span class="nx">count</span><span class="o">)</span> <span class="o">{</span>
       
    90             <span class="nx">out</span><span class="o">++;</span>
       
    91         <span class="o">}</span> <span class="k">else</span> <span class="o">{</span>
       
    92             <span class="k">if</span> <span class="o">(</span><span class="nx">o</span><span class="o">.</span><span class="nx">hasOwnProperty</span><span class="o">(</span><span class="nx">i</span><span class="o">))</span> <span class="o">{</span>
       
    93                 <span class="nx">out</span><span class="o">.</span><span class="nx">push</span><span class="o">((</span><span class="nx">what</span><span class="o">)</span> <span class="o">?</span> <span class="nx">o</span><span class="o">[</span><span class="nx">i</span><span class="o">]</span> <span class="o">:</span> <span class="nx">i</span><span class="o">);</span>
       
    94             <span class="o">}</span>
       
    95         <span class="o">}</span>
       
    96     <span class="o">}</span>
       
    97 
       
    98     <span class="k">return</span> <span class="nx">out</span><span class="o">;</span>
       
    99 <span class="o">};</span>
       
   100 
       
   101 <span class="c">/**</span>
       
   102 <span class="c"> * Returns an array containing the object&#39;s keys</span>
       
   103 <span class="c"> * @TODO use native Object.keys() if available</span>
       
   104 <span class="c"> * @method keys</span>
       
   105 <span class="c"> * @static</span>
       
   106 <span class="c"> * @param o an object</span>
       
   107 <span class="c"> * @return {string[]} the keys</span>
       
   108 <span class="c"> */</span>
       
   109 <span class="nx">O</span><span class="o">.</span><span class="nx">keys</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">o</span><span class="o">)</span> <span class="o">{</span>
       
   110     <span class="k">return</span> <span class="nx">_extract</span><span class="o">(</span><span class="nx">o</span><span class="o">);</span>
       
   111 <span class="o">};</span>
       
   112 
       
   113 <span class="c">/**</span>
       
   114 <span class="c"> * Returns an array containing the object&#39;s values</span>
       
   115 <span class="c"> * @TODO use native Object.values() if available</span>
       
   116 <span class="c"> * @method values</span>
       
   117 <span class="c"> * @static</span>
       
   118 <span class="c"> * @param o an object</span>
       
   119 <span class="c"> * @return {Array} the values</span>
       
   120 <span class="c"> */</span>
       
   121 <span class="nx">O</span><span class="o">.</span><span class="nx">values</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">o</span><span class="o">)</span> <span class="o">{</span>
       
   122     <span class="k">return</span> <span class="nx">_extract</span><span class="o">(</span><span class="nx">o</span><span class="o">,</span> <span class="m">1</span><span class="o">);</span>
       
   123 <span class="o">};</span>
       
   124 
       
   125 <span class="c">/**</span>
       
   126 <span class="c"> * Returns the size of an object</span>
       
   127 <span class="c"> * @TODO use native Object.size() if available</span>
       
   128 <span class="c"> * @method size</span>
       
   129 <span class="c"> * @static</span>
       
   130 <span class="c"> * @param o an object</span>
       
   131 <span class="c"> * @return {int} the size</span>
       
   132 <span class="c"> */</span>
       
   133 <span class="nx">O</span><span class="o">.</span><span class="nx">size</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">o</span><span class="o">)</span> <span class="o">{</span>
       
   134     <span class="k">return</span> <span class="nx">_extract</span><span class="o">(</span><span class="nx">o</span><span class="o">,</span> <span class="m">2</span><span class="o">);</span>
       
   135 <span class="o">};</span>
       
   136 
       
   137 <span class="c">/**</span>
       
   138 <span class="c"> * Returns true if the object contains a given key</span>
       
   139 <span class="c"> * @method hasKey</span>
       
   140 <span class="c"> * @static</span>
       
   141 <span class="c"> * @param o an object</span>
       
   142 <span class="c"> * @param k the key to query</span>
       
   143 <span class="c"> * @return {boolean} true if the object contains the key</span>
       
   144 <span class="c"> */</span>
       
   145 <span class="nx">O</span><span class="o">.</span><span class="nx">hasKey</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">o</span><span class="o">,</span> <span class="nx">k</span><span class="o">)</span> <span class="o">{</span>
       
   146     <span class="c">// return (o.hasOwnProperty(k));</span>
       
   147 <span class="c"></span>    <span class="k">return</span> <span class="o">(</span><span class="nx">k</span> <span class="k">in</span> <span class="nx">o</span><span class="o">);</span>
       
   148 <span class="o">};</span>
       
   149 
       
   150 <span class="c">/**</span>
       
   151 <span class="c"> * Returns true if the object contains a given value</span>
       
   152 <span class="c"> * @method hasValue</span>
       
   153 <span class="c"> * @static</span>
       
   154 <span class="c"> * @param o an object</span>
       
   155 <span class="c"> * @param v the value to query</span>
       
   156 <span class="c"> * @return {boolean} true if the object contains the value</span>
       
   157 <span class="c"> */</span>
       
   158 <span class="nx">O</span><span class="o">.</span><span class="nx">hasValue</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">o</span><span class="o">,</span> <span class="nx">v</span><span class="o">)</span> <span class="o">{</span>
       
   159     <span class="k">return</span> <span class="o">(</span><span class="nx">Y</span><span class="o">.</span><span class="nb">Array</span><span class="o">.</span><span class="nx">indexOf</span><span class="o">(</span><span class="nx">O</span><span class="o">.</span><span class="nx">values</span><span class="o">(</span><span class="nx">o</span><span class="o">),</span> <span class="nx">v</span><span class="o">)</span> <span class="o">&gt;</span> <span class="o">-</span><span class="m">1</span><span class="o">);</span>
       
   160 <span class="o">};</span>
       
   161 
       
   162 <span class="c">/**</span>
       
   163 <span class="c"> * Determines whether or not the property was added</span>
       
   164 <span class="c"> * to the object instance.  Returns false if the property is not present</span>
       
   165 <span class="c"> * in the object, or was inherited from the prototype.</span>
       
   166 <span class="c"> *</span>
       
   167 <span class="c"> * @deprecated Safari 1.x support has been removed, so this is simply a </span>
       
   168 <span class="c"> * wrapper for the native implementation.  Use the native implementation</span>
       
   169 <span class="c"> * directly instead.</span>
       
   170 <span class="c"> *</span>
       
   171 <span class="c"> * @TODO Remove in B1</span>
       
   172 <span class="c"> *</span>
       
   173 <span class="c"> * @method owns</span>
       
   174 <span class="c"> * @static</span>
       
   175 <span class="c"> * @param o {any} The object being testing</span>
       
   176 <span class="c"> * @param p {string} the property to look for</span>
       
   177 <span class="c"> * @return {boolean} true if the object has the property on the instance</span>
       
   178 <span class="c"> */</span>
       
   179 <span class="nx">O</span><span class="o">.</span><span class="nx">owns</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">o</span><span class="o">,</span> <span class="nx">k</span><span class="o">)</span> <span class="o">{</span>
       
   180     <span class="k">return</span> <span class="o">(</span><span class="nx">o</span><span class="o">.</span><span class="nx">hasOwnProperty</span><span class="o">(</span><span class="nx">k</span><span class="o">));</span>
       
   181 <span class="o">};</span>
       
   182 
       
   183 <span class="c">/**</span>
       
   184 <span class="c"> * Executes a function on each item. The function</span>
       
   185 <span class="c"> * receives the value, the key, and the object</span>
       
   186 <span class="c"> * as paramters (in that order).</span>
       
   187 <span class="c"> * @method each</span>
       
   188 <span class="c"> * @static</span>
       
   189 <span class="c"> * @param o the object to iterate</span>
       
   190 <span class="c"> * @param f {function} the function to execute</span>
       
   191 <span class="c"> * @param c the execution context</span>
       
   192 <span class="c"> * @param proto {boolean} include proto</span>
       
   193 <span class="c"> * @return {YUI} the YUI instance</span>
       
   194 <span class="c"> */</span>
       
   195 <span class="nx">O</span><span class="o">.</span><span class="nx">each</span> <span class="o">=</span> <span class="k">function</span> <span class="o">(</span><span class="nx">o</span><span class="o">,</span> <span class="nx">f</span><span class="o">,</span> <span class="nx">c</span><span class="o">,</span> <span class="nx">proto</span><span class="o">)</span> <span class="o">{</span>
       
   196     <span class="k">var</span> <span class="nx">s</span> <span class="o">=</span> <span class="nx">c</span> <span class="o">||</span> <span class="nx">Y</span><span class="o">,</span> <span class="nx">i</span><span class="o">;</span>
       
   197 
       
   198     <span class="k">for</span> <span class="o">(</span><span class="nx">i</span> <span class="k">in</span> <span class="nx">o</span><span class="o">)</span> <span class="o">{</span>
       
   199         <span class="k">if</span> <span class="o">(</span><span class="nx">proto</span> <span class="o">||</span> <span class="nx">o</span><span class="o">.</span><span class="nx">hasOwnProperty</span><span class="o">(</span><span class="nx">i</span><span class="o">))</span> <span class="o">{</span>
       
   200             <span class="nx">f</span><span class="o">.</span><span class="nx">call</span><span class="o">(</span><span class="nx">s</span><span class="o">,</span> <span class="nx">o</span><span class="o">[</span><span class="nx">i</span><span class="o">],</span> <span class="nx">i</span><span class="o">,</span> <span class="nx">o</span><span class="o">);</span>
       
   201         <span class="o">}</span>
       
   202     <span class="o">}</span>
       
   203     <span class="k">return</span> <span class="nx">Y</span><span class="o">;</span>
       
   204 <span class="o">};</span>
       
   205 
       
   206 <span class="c">/**</span>
       
   207 <span class="c"> * Retrieves the sub value at the provided path,</span>
       
   208 <span class="c"> * from the value object provided.</span>
       
   209 <span class="c"> *</span>
       
   210 <span class="c"> * @method getValue</span>
       
   211 <span class="c"> * @param o The object from which to extract the property value</span>
       
   212 <span class="c"> * @param path {Array} A path array, specifying the object traversal path</span>
       
   213 <span class="c"> * from which to obtain the sub value.</span>
       
   214 <span class="c"> * @return {Any} The value stored in the path, undefined if not found.</span>
       
   215 <span class="c"> * Returns the source object if an empty path is provided.</span>
       
   216 <span class="c"> */</span>
       
   217 <span class="nx">O</span><span class="o">.</span><span class="nx">getValue</span> <span class="o">=</span> <span class="k">function</span> <span class="o">(</span><span class="nx">o</span><span class="o">,</span> <span class="nx">path</span><span class="o">)</span> <span class="o">{</span>
       
   218     <span class="k">var</span> <span class="nx">p</span><span class="o">=</span><span class="nx">Y</span><span class="o">.</span><span class="nb">Array</span><span class="o">(</span><span class="nx">path</span><span class="o">),</span> <span class="nx">l</span><span class="o">=</span><span class="nx">p</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="nx">i</span><span class="o">;</span>
       
   219 
       
   220     <span class="k">for</span> <span class="o">(</span><span class="nx">i</span><span class="o">=</span><span class="m">0</span><span class="o">;</span> <span class="nx">o</span> <span class="o">!==</span> <span class="nx">UNDEFINED</span> <span class="o">&amp;&amp;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">l</span><span class="o">;</span> <span class="nx">i</span><span class="o">=</span><span class="nx">i</span><span class="o">+</span><span class="m">1</span><span class="o">)</span> <span class="o">{</span>
       
   221         <span class="nx">o</span> <span class="o">=</span> <span class="nx">o</span><span class="o">[</span><span class="nx">p</span><span class="o">[</span><span class="nx">i</span><span class="o">]];</span>
       
   222     <span class="o">}</span>
       
   223 
       
   224     <span class="k">return</span> <span class="nx">o</span><span class="o">;</span>
       
   225 <span class="o">};</span>
       
   226 
       
   227 <span class="c">/**</span>
       
   228 <span class="c"> * Sets the sub-attribute value at the provided path on the </span>
       
   229 <span class="c"> * value object.  Returns the modified value object, or </span>
       
   230 <span class="c"> * undefined if the path is invalid.</span>
       
   231 <span class="c"> *</span>
       
   232 <span class="c"> * @method setValue</span>
       
   233 <span class="c"> * @param o             The object on which to set the sub value.</span>
       
   234 <span class="c"> * @param path {Array}  A path array, specifying the object traversal path</span>
       
   235 <span class="c"> *                      at which to set the sub value.</span>
       
   236 <span class="c"> * @param val {Any}     The new value for the sub-attribute.</span>
       
   237 <span class="c"> * @return {Object}     The modified object, with the new sub value set, or </span>
       
   238 <span class="c"> *                      undefined, if the path was invalid.</span>
       
   239 <span class="c"> */</span>
       
   240 <span class="nx">O</span><span class="o">.</span><span class="nx">setValue</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">o</span><span class="o">,</span> <span class="nx">path</span><span class="o">,</span> <span class="nx">val</span><span class="o">)</span> <span class="o">{</span>
       
   241 
       
   242     <span class="k">var</span> <span class="nx">p</span><span class="o">=</span><span class="nx">Y</span><span class="o">.</span><span class="nb">Array</span><span class="o">(</span><span class="nx">path</span><span class="o">),</span> <span class="nx">leafIdx</span><span class="o">=</span><span class="nx">p</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">,</span> <span class="nx">i</span><span class="o">,</span> <span class="nx">ref</span><span class="o">=</span><span class="nx">o</span><span class="o">;</span>
       
   243 
       
   244     <span class="k">if</span> <span class="o">(</span><span class="nx">leafIdx</span> <span class="o">&gt;=</span> <span class="m">0</span><span class="o">)</span> <span class="o">{</span>
       
   245         <span class="k">for</span> <span class="o">(</span><span class="nx">i</span><span class="o">=</span><span class="m">0</span><span class="o">;</span> <span class="nx">ref</span> <span class="o">!==</span> <span class="nx">UNDEFINED</span> <span class="o">&amp;&amp;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">leafIdx</span><span class="o">;</span> <span class="nx">i</span><span class="o">=</span><span class="nx">i</span><span class="o">+</span><span class="m">1</span><span class="o">)</span> <span class="o">{</span>
       
   246             <span class="nx">ref</span> <span class="o">=</span> <span class="nx">ref</span><span class="o">[</span><span class="nx">p</span><span class="o">[</span><span class="nx">i</span><span class="o">]];</span>
       
   247         <span class="o">}</span>
       
   248 
       
   249         <span class="k">if</span> <span class="o">(</span><span class="nx">ref</span> <span class="o">!==</span> <span class="nx">UNDEFINED</span><span class="o">)</span> <span class="o">{</span>
       
   250             <span class="nx">ref</span><span class="o">[</span><span class="nx">p</span><span class="o">[</span><span class="nx">i</span><span class="o">]]</span> <span class="o">=</span> <span class="nx">val</span><span class="o">;</span>
       
   251         <span class="o">}</span> <span class="k">else</span> <span class="o">{</span>
       
   252             <span class="k">return</span> <span class="nx">UNDEFINED</span><span class="o">;</span>
       
   253         <span class="o">}</span>
       
   254     <span class="o">}</span>
       
   255 
       
   256     <span class="k">return</span> <span class="nx">o</span><span class="o">;</span>
       
   257 <span class="o">};</span>
       
   258 
       
   259 
       
   260 <span class="o">})();</span>
       
   261 </pre></div>
       
   262                     </div>
       
   263 			</div>
       
   264 		</div>
       
   265 		<div class="yui-b">
       
   266             <div class="nav">
       
   267 
       
   268                     <div id="moduleList" class="module">
       
   269                         <h4>Modules</h4>
       
   270                         <ul class="content">
       
   271                                 <li class=""><a href="module_anim.html" title="anim">anim</a></li>
       
   272                                 <li class=""><a href="module_attribute.html" title="attribute">attribute</a></li>
       
   273                                 <li class=""><a href="module_base.html" title="base">base</a></li>
       
   274                                 <li class=""><a href="module_cache.html" title="cache">cache</a></li>
       
   275                                 <li class=""><a href="module_classnamemanager.html" title="classnamemanager">classnamemanager</a></li>
       
   276                                 <li class=""><a href="module_collection.html" title="collection">collection</a></li>
       
   277                                 <li class=""><a href="module_console.html" title="console">console</a></li>
       
   278                                 <li class=""><a href="module_console-filters.html" title="console-filters">console-filters</a></li>
       
   279                                 <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li>
       
   280                                 <li class=""><a href="module_dataschema.html" title="dataschema">dataschema</a></li>
       
   281                                 <li class=""><a href="module_datasource.html" title="datasource">datasource</a></li>
       
   282                                 <li class=""><a href="module_datatype.html" title="datatype">datatype</a></li>
       
   283                                 <li class=""><a href="module_dd.html" title="dd">dd</a></li>
       
   284                                 <li class=""><a href="module_dom.html" title="dom">dom</a></li>
       
   285                                 <li class=""><a href="module_dump.html" title="dump">dump</a></li>
       
   286                                 <li class=""><a href="module_event.html" title="event">event</a></li>
       
   287                                 <li class=""><a href="module_event-custom.html" title="event-custom">event-custom</a></li>
       
   288                                 <li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li>
       
   289                                 <li class=""><a href="module_history.html" title="history">history</a></li>
       
   290                                 <li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li>
       
   291                                 <li class=""><a href="module_io.html" title="io">io</a></li>
       
   292                                 <li class=""><a href="module_json.html" title="json">json</a></li>
       
   293                                 <li class=""><a href="module_node.html" title="node">node</a></li>
       
   294                                 <li class=""><a href="module_node-focusmanager.html" title="node-focusmanager">node-focusmanager</a></li>
       
   295                                 <li class=""><a href="module_node-menunav.html" title="node-menunav">node-menunav</a></li>
       
   296                                 <li class=""><a href="module_oop.html" title="oop">oop</a></li>
       
   297                                 <li class=""><a href="module_overlay.html" title="overlay">overlay</a></li>
       
   298                                 <li class=""><a href="module_plugin.html" title="plugin">plugin</a></li>
       
   299                                 <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li>
       
   300                                 <li class=""><a href="module_queue.html" title="queue">queue</a></li>
       
   301                                 <li class=""><a href="module_slider.html" title="slider">slider</a></li>
       
   302                                 <li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li>
       
   303                                 <li class=""><a href="module_substitute.html" title="substitute">substitute</a></li>
       
   304                                 <li class=""><a href="module_test.html" title="test">test</a></li>
       
   305                                 <li class=""><a href="module_widget.html" title="widget">widget</a></li>
       
   306                                 <li class=""><a href="module_widget-position.html" title="widget-position">widget-position</a></li>
       
   307                                 <li class=""><a href="module_widget-position-ext.html" title="widget-position-ext">widget-position-ext</a></li>
       
   308                                 <li class=""><a href="module_widget-stack.html" title="widget-stack">widget-stack</a></li>
       
   309                                 <li class=""><a href="module_widget-stdmod.html" title="widget-stdmod">widget-stdmod</a></li>
       
   310                                 <li class="selected"><a href="module_yui.html" title="yui">yui</a></li>
       
   311                         </ul>
       
   312                     </div>
       
   313 
       
   314                     <div id="classList" class="module">
       
   315                         <h4>Classes</h4>
       
   316                         <ul class="content">
       
   317                                 <li class=""><a href="Array.html" title="Array">Array</a></li>
       
   318                                 <li class=""><a href="config.html" title="config">config</a></li>
       
   319                                 <li class=""><a href="Get.html" title="Get">Get</a></li>
       
   320                                 <li class=""><a href="Lang.html" title="Lang">Lang</a></li>
       
   321                                 <li class=""><a href="Loader.html" title="Loader">Loader</a></li>
       
   322                                 <li class=""><a href="Object.html" title="Object">Object</a></li>
       
   323                                 <li class=""><a href="UA.html" title="UA">UA</a></li>
       
   324                                 <li class=""><a href="YUI.html" title="YUI">YUI</a></li>
       
   325                         </ul>
       
   326                     </div>
       
   327 
       
   328                     <div id="fileList" class="module">
       
   329                         <h4>Files</h4>
       
   330                         <ul class="content">        
       
   331                                 <li class=""><a href="_module.js.html" title="_module.js">_module.js</a></li>
       
   332                                 <li class=""><a href="get.js.html" title="get.js">get.js</a></li>
       
   333                                 <li class=""><a href="loader.js.html" title="loader.js">loader.js</a></li>
       
   334                                 <li class=""><a href="yui-array.js.html" title="yui-array.js">yui-array.js</a></li>
       
   335                                 <li class=""><a href="yui-base.js.html" title="yui-base.js">yui-base.js</a></li>
       
   336                                 <li class=""><a href="yui-core.js.html" title="yui-core.js">yui-core.js</a></li>
       
   337                                 <li class=""><a href="yui-init.js.html" title="yui-init.js">yui-init.js</a></li>
       
   338                                 <li class=""><a href="yui-lang.js.html" title="yui-lang.js">yui-lang.js</a></li>
       
   339                                 <li class=""><a href="yui-later.js.html" title="yui-later.js">yui-later.js</a></li>
       
   340                                 <li class=""><a href="yui-log.js.html" title="yui-log.js">yui-log.js</a></li>
       
   341                                 <li class="selected"><a href="yui-object.js.html" title="yui-object.js">yui-object.js</a></li>
       
   342                                 <li class=""><a href="yui-ua.js.html" title="yui-ua.js">yui-ua.js</a></li>
       
   343                                 <li class=""><a href="yui.js.html" title="yui.js">yui.js</a></li>
       
   344                         </ul>
       
   345                     </div>
       
   346 
       
   347 
       
   348 
       
   349 
       
   350 
       
   351             </div>
       
   352 		</div>
       
   353 	</div>
       
   354 	<div id="ft">
       
   355         <hr />
       
   356         Copyright &copy; 2009 Yahoo! Inc. All rights reserved.
       
   357 	</div>
       
   358 </div>
       
   359 <script type="text/javascript">
       
   360     ALL_YUI_PROPS = [{"access": "", "host": "Object", "name": "()", "url": "Object.html#method_()", "type": "method"}, {"access": "", "host": "Array", "name": "()", "url": "Array.html#method_()", "type": "method"}, {"access": "", "host": "Get", "name": "abort", "url": "Get.html#method_abort", "type": "method"}, {"access": "", "host": "YUI", "name": "add", "url": "YUI.html#method_add", "type": "method"}, {"access": "", "host": "Loader", "name": "addModule", "url": "Loader.html#method_addModule", "type": "method"}, {"access": "private", "host": "Loader", "name": "_addSkin", "url": "Loader.html#method__addSkin", "type": "method"}, {"access": "", "host": "UA", "name": "air", "url": "UA.html#property_air", "type": "property"}, {"access": "", "host": "Loader", "name": "allowRollup", "url": "Loader.html#property_allowRollup", "type": "property"}, {"access": "", "host": "YUI", "name": "applyTo", "url": "YUI.html#method_applyTo", "type": "method"}, {"access": "", "host": "Loader", "name": "attaching", "url": "Loader.html#property_attaching", "type": "property"}, {"access": "private", "host": "Get", "name": "_autoPurge", "url": "Get.html#method__autoPurge", "type": "method"}, {"access": "", "host": "YUI", "name": "available", "url": "YUI.html#event_available", "type": "event"}, {"access": "", "host": "config", "name": "base", "url": "config.html#property_base", "type": "property"}, {"access": "", "host": "Loader", "name": "base", "url": "Loader.html#property_base", "type": "property"}, {"access": "", "host": "YUI", "name": "blur", "url": "YUI.html#event_blur", "type": "event"}, {"access": "", "host": "YUI", "name": "cached", "url": "YUI.html#method_cached", "type": "method"}, {"access": "", "host": "UA", "name": "caja", "url": "UA.html#property_caja", "type": "property"}, {"access": "", "host": "Loader", "name": "calculate", "url": "Loader.html#method_calculate", "type": "method"}, {"access": "", "host": "config", "name": "charset", "url": "config.html#property_charset", "type": "property"}, {"access": "", "host": "Loader", "name": "charset", "url": "Loader.html#property_charset", "type": "property"}, {"access": "", "host": "config", "name": "combine", "url": "config.html#property_combine", "type": "property"}, {"access": "", "host": "Loader", "name": "combine", "url": "Loader.html#property_combine", "type": "property"}, {"access": "", "host": "config", "name": "comboBase", "url": "config.html#property_comboBase", "type": "property"}, {"access": "", "host": "Loader", "name": "comboBase", "url": "Loader.html#property_comboBase", "type": "property"}, {"access": "", "host": "YUI", "name": "contentready", "url": "YUI.html#event_contentready", "type": "event"}, {"access": "", "host": "Loader", "name": "context", "url": "Loader.html#property_context", "type": "property"}, {"access": "", "host": "config", "name": "core", "url": "config.html#property_core", "type": "property"}, {"access": "", "host": "Get", "name": "css", "url": "Get.html#method_css", "type": "method"}, {"access": "", "host": "config", "name": "cssAttributes", "url": "config.html#property_cssAttributes", "type": "property"}, {"access": "", "host": "Loader", "name": "cssAttributes", "url": "Loader.html#property_cssAttributes", "type": "property"}, {"access": "", "host": "Loader", "name": "data", "url": "Loader.html#property_data", "type": "property"}, {"access": "", "host": "config", "name": "dateFormat", "url": "config.html#property_dateFormat", "type": "property"}, {"access": "", "host": "config", "name": "debug", "url": "config.html#property_debug", "type": "property"}, {"access": "", "host": "YUI", "name": "delegate", "url": "YUI.html#event_delegate", "type": "event"}, {"access": "", "host": "Loader", "name": "dirty", "url": "Loader.html#property_dirty", "type": "property"}, {"access": "", "host": "config", "name": "doc", "url": "config.html#property_doc", "type": "property"}, {"access": "", "host": "YUI", "name": "domready", "url": "YUI.html#event_domready", "type": "event"}, {"access": "", "host": "Object", "name": "each", "url": "Object.html#method_each", "type": "method"}, {"access": "", "host": "Array", "name": "each", "url": "Array.html#method_each", "type": "method"}, {"access": "private", "host": "Get", "name": "_end", "url": "Get.html#method__end", "type": "method"}, {"access": "", "host": "YUI", "name": "error", "url": "YUI.html#method_error", "type": "method"}, {"access": "", "host": "YUI", "name": "event:ready", "url": "YUI.html#event_event:ready", "type": "event"}, {"access": "private", "host": "Loader", "name": "_explode", "url": "Loader.html#method__explode", "type": "method"}, {"access": "private", "host": "Object", "name": "_extract", "url": "Object.html#method__extract", "type": "method"}, {"access": "", "host": "config", "name": "filter", "url": "config.html#property_filter", "type": "property"}, {"access": "", "host": "Loader", "name": "filter", "url": "Loader.html#property_filter", "type": "property"}, {"access": "private", "host": "Loader", "name": "_filter", "url": "Loader.html#method__filter", "type": "method"}, {"access": "", "host": "config", "name": "filters", "url": "config.html#property_filters", "type": "property"}, {"access": "", "host": "Loader", "name": "filters", "url": "Loader.html#property_filters", "type": "property"}, {"access": "private", "host": "Get", "name": "_finalize", "url": "Get.html#method__finalize", "type": "method"}, {"access": "private", "host": "Get", "name": "_finish", "url": "Get.html#method__finish", "type": "method"}, {"access": "", "host": "YUI", "name": "focus", "url": "YUI.html#event_focus", "type": "event"}, {"access": "", "host": "config", "name": "force", "url": "config.html#property_force", "type": "property"}, {"access": "", "host": "Loader", "name": "force", "url": "Loader.html#property_force", "type": "property"}, {"access": "", "host": "Loader", "name": "formatSkin", "url": "Loader.html#method_formatSkin", "type": "method"}, {"access": "", "host": "UA", "name": "gecko", "url": "UA.html#property_gecko", "type": "property"}, {"access": "", "host": "Loader", "name": "getProvides", "url": "Loader.html#method_getProvides", "type": "method"}, {"access": "", "host": "Loader", "name": "getRequires", "url": "Loader.html#method_getRequires", "type": "method"}, {"access": "", "host": "Object", "name": "getValue", "url": "Object.html#method_getValue", "type": "method"}, {"access": "", "host": "YUI", "name": "Global", "url": "YUI.html#property_Global", "type": "property"}, {"access": "", "host": "YUI", "name": "guid", "url": "YUI.html#method_guid", "type": "method"}, {"access": "", "host": "Array", "name": "hash", "url": "Array.html#method_hash", "type": "method"}, {"access": "", "host": "Object", "name": "hasKey", "url": "Object.html#method_hasKey", "type": "method"}, {"access": "", "host": "Object", "name": "hasValue", "url": "Object.html#method_hasValue", "type": "method"}, {"access": "", "host": "UA", "name": "ie", "url": "UA.html#property_ie", "type": "property"}, {"access": "", "host": "config", "name": "ignore", "url": "config.html#property_ignore", "type": "property"}, {"access": "", "host": "Loader", "name": "ignore", "url": "Loader.html#property_ignore", "type": "property"}, {"access": "", "host": "Loader", "name": "ignoreRegistered", "url": "Loader.html#property_ignoreRegistered", "type": "property"}, {"access": "", "host": "Array", "name": "indexOf", "url": "Array.html#method_indexOf", "type": "method"}, {"access": "private", "host": "YUI", "name": "_init", "url": "YUI.html#method__init", "type": "method"}, {"access": "", "host": "config", "name": "injected", "url": "config.html#property_injected", "type": "property"}, {"access": "", "host": "Loader", "name": "insert", "url": "Loader.html#method_insert", "type": "method"}, {"access": "", "host": "config", "name": "insertBefore", "url": "config.html#property_insertBefore", "type": "property"}, {"access": "", "host": "Loader", "name": "insertBefore", "url": "Loader.html#property_insertBefore", "type": "property"}, {"access": "", "host": "Loader", "name": "inserted", "url": "Loader.html#property_inserted", "type": "property"}, {"access": "private", "host": "Loader", "name": "_internalCallback", "url": "Loader.html#property__internalCallback", "type": "property"}, {"access": "", "host": "Lang", "name": "isArray", "url": "Lang.html#method_isArray", "type": "method"}, {"access": "", "host": "Lang", "name": "isBoolean", "url": "Lang.html#method_isBoolean", "type": "method"}, {"access": "", "host": "Lang", "name": "isDate", "url": "Lang.html#method_isDate", "type": "method"}, {"access": "", "host": "Lang", "name": "isFunction", "url": "Lang.html#method_isFunction", "type": "method"}, {"access": "", "host": "Lang", "name": "isNull", "url": "Lang.html#method_isNull", "type": "method"}, {"access": "", "host": "Lang", "name": "isNumber", "url": "Lang.html#method_isNumber", "type": "method"}, {"access": "", "host": "Lang", "name": "isObject", "url": "Lang.html#method_isObject", "type": "method"}, {"access": "", "host": "Lang", "name": "isString", "url": "Lang.html#method_isString", "type": "method"}, {"access": "", "host": "Lang", "name": "isUndefined", "url": "Lang.html#method_isUndefined", "type": "method"}, {"access": "", "host": "Lang", "name": "isValue", "url": "Lang.html#method_isValue", "type": "method"}, {"access": "", "host": "config", "name": "jsAttributes", "url": "config.html#property_jsAttributes", "type": "property"}, {"access": "", "host": "Loader", "name": "jsAttributes", "url": "Loader.html#property_jsAttributes", "type": "property"}, {"access": "", "host": "YUI", "name": "key", "url": "YUI.html#event_key", "type": "event"}, {"access": "", "host": "Object", "name": "keys", "url": "Object.html#method_keys", "type": "method"}, {"access": "", "host": "YUI", "name": "later", "url": "YUI.html#method_later", "type": "method"}, {"access": "private", "host": "Get", "name": "_linkNode", "url": "Get.html#method__linkNode", "type": "method"}, {"access": "", "host": "Loader", "name": "loaded", "url": "Loader.html#property_loaded", "type": "property"}, {"access": "", "host": "Loader", "name": "loadNext", "url": "Loader.html#method_loadNext", "type": "method"}, {"access": "", "host": "Loader", "name": "loadOptional", "url": "Loader.html#property_loadOptional", "type": "property"}, {"access": "", "host": "config", "name": "locale", "url": "config.html#property_locale", "type": "property"}, {"access": "", "host": "YUI", "name": "log", "url": "YUI.html#method_log", "type": "method"}, {"access": "", "host": "config", "name": "logExclude", "url": "config.html#property_logExclude", "type": "property"}, {"access": "", "host": "config", "name": "logInclude", "url": "config.html#property_logInclude", "type": "property"}, {"access": "", "host": "YUI", "name": "merge", "url": "YUI.html#method_merge", "type": "method"}, {"access": "", "host": "YUI", "name": "message", "url": "YUI.html#method_message", "type": "method"}, {"access": "", "host": "YUI", "name": "mix", "url": "YUI.html#method_mix", "type": "method"}, {"access": "", "host": "UA", "name": "mobile", "url": "UA.html#property_mobile", "type": "property"}, {"access": "", "host": "Loader", "name": "moduleInfo", "url": "Loader.html#property_moduleInfo", "type": "property"}, {"access": "", "host": "config", "name": "modules", "url": "config.html#property_modules", "type": "property"}, {"access": "", "host": "YUI", "name": "mouseenter", "url": "YUI.html#event_mouseenter", "type": "event"}, {"access": "", "host": "YUI", "name": "mouseleave", "url": "YUI.html#event_mouseleave", "type": "event"}, {"access": "", "host": "YUI", "name": "namespace", "url": "YUI.html#method_namespace", "type": "method"}, {"access": "private", "host": "Get", "name": "_next", "url": "Get.html#method__next", "type": "method"}, {"access": "private", "host": "Get", "name": "_node", "url": "Get.html#method__node", "type": "method"}, {"access": "", "host": "Array", "name": "numericSort", "url": "Array.html#method_numericSort", "type": "method"}, {"access": "", "host": "config", "name": "onCSS", "url": "config.html#property_onCSS", "type": "property"}, {"access": "", "host": "Loader", "name": "onCSS", "url": "Loader.html#method_onCSS", "type": "method"}, {"access": "", "host": "Loader", "name": "onFailure", "url": "Loader.html#method_onFailure", "type": "method"}, {"access": "", "host": "Loader", "name": "onProgress", "url": "Loader.html#method_onProgress", "type": "method"}, {"access": "", "host": "Loader", "name": "onSuccess", "url": "Loader.html#method_onSuccess", "type": "method"}, {"access": "", "host": "Loader", "name": "onTimeout", "url": "Loader.html#method_onTimeout", "type": "method"}, {"access": "", "host": "UA", "name": "opera", "url": "UA.html#property_opera", "type": "property"}, {"access": "", "host": "UA", "name": "os", "url": "UA.html#property_os", "type": "property"}, {"access": "", "host": "Object", "name": "owns", "url": "Object.html#method_owns", "type": "method"}, {"access": "", "host": "config", "name": "pollInterval", "url": "config.html#property_pollInterval", "type": "property"}, {"access": "private", "host": "Get", "name": "_purge", "url": "Get.html#method__purge", "type": "method"}, {"access": "private", "host": "Get", "name": "PURGE_THRESH", "url": "Get.html#property_PURGE_THRESH", "type": "property"}, {"access": "", "host": "config", "name": "purgethreshold", "url": "config.html#property_purgethreshold", "type": "property"}, {"access": "private", "host": "Get", "name": "purging", "url": "Get.html#property_purging", "type": "property"}, {"access": "private", "host": "Get", "name": "qidx", "url": "Get.html#property_qidx", "type": "property"}, {"access": "private", "host": "Get", "name": "queue", "url": "Get.html#method_queue", "type": "method"}, {"access": "private", "host": "Get", "name": "queues", "url": "Get.html#property_queues", "type": "property"}, {"access": "private", "host": "Loader", "name": "_reduce", "url": "Loader.html#method__reduce", "type": "method"}, {"access": "", "host": "Loader", "name": "require", "url": "Loader.html#method_require", "type": "method"}, {"access": "", "host": "Loader", "name": "required", "url": "Loader.html#property_required", "type": "property"}, {"access": "private", "host": "Get", "name": "_returnData", "url": "Get.html#method__returnData", "type": "method"}, {"access": "private", "host": "Loader", "name": "_rollup", "url": "Loader.html#method__rollup", "type": "method"}, {"access": "", "host": "Loader", "name": "rollups", "url": "Loader.html#property_rollups", "type": "property"}, {"access": "", "host": "config", "name": "root", "url": "config.html#property_root", "type": "property"}, {"access": "", "host": "Loader", "name": "root", "url": "Loader.html#property_root", "type": "property"}, {"access": "", "host": "Get", "name": "script", "url": "Get.html#method_script", "type": "method"}, {"access": "private", "host": "Get", "name": "_scriptNode", "url": "Get.html#method__scriptNode", "type": "method"}, {"access": "", "host": "UA", "name": "secure", "url": "UA.html#property_secure", "type": "property"}, {"access": "", "host": "config", "name": "secureBase", "url": "config.html#property_secureBase", "type": "property"}, {"access": "private", "host": "YUI", "name": "_setup", "url": "YUI.html#method__setup", "type": "method"}, {"access": "private", "host": "Loader", "name": "_setup", "url": "Loader.html#method__setup", "type": "method"}, {"access": "", "host": "Object", "name": "setValue", "url": "Object.html#method_setValue", "type": "method"}, {"access": "", "host": "YUI", "name": "simulate", "url": "YUI.html#method_simulate", "type": "method"}, {"access": "", "host": "Object", "name": "size", "url": "Object.html#method_size", "type": "method"}, {"access": "", "host": "Loader", "name": "skin", "url": "Loader.html#property_skin", "type": "property"}, {"access": "", "host": "Loader", "name": "skipped", "url": "Loader.html#property_skipped", "type": "property"}, {"access": "", "host": "Array", "name": "some", "url": "Array.html#method_some", "type": "method"}, {"access": "private", "host": "Loader", "name": "_sort", "url": "Loader.html#method__sort", "type": "method"}, {"access": "", "host": "Loader", "name": "sorted", "url": "Loader.html#property_sorted", "type": "property"}, {"access": "", "host": "YUI", "name": "stamp", "url": "YUI.html#method_stamp", "type": "method"}, {"access": "", "host": "Array", "name": "test", "url": "Array.html#method_test", "type": "method"}, {"access": "", "host": "config", "name": "throwFail", "url": "config.html#property_throwFail", "type": "property"}, {"access": "", "host": "config", "name": "timeout", "url": "config.html#property_timeout", "type": "property"}, {"access": "private", "host": "Get", "name": "_timeout", "url": "Get.html#method__timeout", "type": "method"}, {"access": "", "host": "Loader", "name": "timeout", "url": "Loader.html#property_timeout", "type": "property"}, {"access": "private", "host": "Get", "name": "_track", "url": "Get.html#method__track", "type": "method"}, {"access": "", "host": "Lang", "name": "trim", "url": "Lang.html#method_trim", "type": "method"}, {"access": "", "host": "Lang", "name": "type", "url": "Lang.html#method_type", "type": "method"}, {"access": "private", "host": "Loader", "name": "_url", "url": "Loader.html#method__url", "type": "method"}, {"access": "", "host": "YUI", "name": "use", "url": "YUI.html#method_use", "type": "method"}, {"access": "", "host": "config", "name": "useBrowserConsole", "url": "config.html#property_useBrowserConsole", "type": "property"}, {"access": "private", "host": "Loader", "name": "_useYahooListener", "url": "Loader.html#property__useYahooListener", "type": "property"}, {"access": "", "host": "Object", "name": "values", "url": "Object.html#method_values", "type": "method"}, {"access": "", "host": "UA", "name": "webkit", "url": "UA.html#property_webkit", "type": "property"}, {"access": "", "host": "config", "name": "win", "url": "config.html#property_win", "type": "property"}, {"access": "", "host": "YUI", "name": "windowresize", "url": "YUI.html#event_windowresize", "type": "event"}, {"access": "", "host": "config", "name": "windowResizeDelay", "url": "config.html#property_windowResizeDelay", "type": "property"}];
       
   361 </script>
       
   362 </body>
       
   363 </html>