|
0
|
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 Object (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 <span class="subtitle">3.0.0b1</span></h3> |
|
|
20 |
<a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> |
|
|
21 |
> <a href="./module_yui.html" title="yui">yui</a> |
|
|
22 |
> Object |
|
|
23 |
|
|
|
24 |
<form onsubmit="return false"> |
|
|
25 |
<div id="propertysearch"> |
|
|
26 |
Search: <input autocomplete="off" id="searchinput" /> |
|
|
27 |
<div id="searchresults"> |
|
|
28 |
|
|
|
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 |
<h2> |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
|
|
|
51 |
Class <b property="yui:name">Object</b> |
|
|
52 |
<span class="extends"> |
|
|
53 |
</span> |
|
|
54 |
|
|
|
55 |
</h2> |
|
|
56 |
<!-- class tree goes here --> |
|
|
57 |
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
<div class="summary description" property="yui:description"> |
|
|
62 |
Adds the following Object utilities to the YUI instance |
|
|
63 |
</div> |
|
|
64 |
|
|
|
65 |
|
|
|
66 |
<div rel="yui:properties" resource="#properties"> |
|
|
67 |
|
|
|
68 |
</div> |
|
|
69 |
|
|
|
70 |
<div rel="yui:methods" resource="#methods"> |
|
|
71 |
<div class="section method details"> |
|
|
72 |
<h3 id="methods">Methods</h3> |
|
|
73 |
<div class="content"> |
|
|
74 |
<div class="" rel="yui:method" resource="#method_()"> |
|
|
75 |
<h4> |
|
|
76 |
<a name="method_()">()</a></h4> |
|
|
77 |
<div class="detail" > |
|
|
78 |
<code> |
|
|
79 |
|
|
|
80 |
static |
|
|
81 |
|
|
|
82 |
Object |
|
|
83 |
<strong property="yui:name">()</strong> |
|
|
84 |
( |
|
|
85 |
|
|
|
86 |
|
|
|
87 |
o |
|
|
88 |
|
|
|
89 |
|
|
|
90 |
) |
|
|
91 |
</code> |
|
|
92 |
|
|
|
93 |
<div class="description" property="yui:description"> |
|
|
94 |
Y.Object(o) returns a new object based upon the supplied object. |
|
|
95 |
</div> |
|
|
96 |
|
|
|
97 |
<div class="description"> |
|
|
98 |
|
|
|
99 |
<dl rel="yui:parameters"> |
|
|
100 |
<dt>Parameters:</dt> |
|
|
101 |
<dd rel="yui:parameter"> |
|
|
102 |
<code><span property="yui:name">o</span> |
|
|
103 |
<<span property="yui:type">object</span>> |
|
|
104 |
</code> |
|
|
105 |
<span property="yui:description"> the supplier object</span> |
|
|
106 |
</dd> |
|
|
107 |
</dl> |
|
|
108 |
|
|
|
109 |
<dl> |
|
|
110 |
<dt>Returns: |
|
|
111 |
<code property="yui:return"> |
|
|
112 |
Object |
|
|
113 |
</code></dt> |
|
|
114 |
<dd property="yui:returnInfo">the new object</dd> |
|
|
115 |
</dl> |
|
|
116 |
|
|
|
117 |
|
|
|
118 |
|
|
|
119 |
|
|
|
120 |
</div> |
|
|
121 |
|
|
|
122 |
</div> |
|
|
123 |
<hr /> |
|
|
124 |
</div> |
|
|
125 |
<div class="private" rel="yui:method" resource="#method__extract"> |
|
|
126 |
<h4> |
|
|
127 |
<a name="method__extract">_extract</a></h4> |
|
|
128 |
<div class="detail" > |
|
|
129 |
<code> |
|
|
130 |
private |
|
|
131 |
static |
|
|
132 |
|
|
|
133 |
boolean|Array |
|
|
134 |
<strong property="yui:name">_extract</strong> |
|
|
135 |
( |
|
|
136 |
|
|
|
137 |
|
|
|
138 |
o |
|
|
139 |
|
|
|
140 |
|
|
|
141 |
, |
|
|
142 |
what |
|
|
143 |
|
|
|
144 |
|
|
|
145 |
) |
|
|
146 |
</code> |
|
|
147 |
|
|
|
148 |
<div class="description" property="yui:description"> |
|
|
149 |
Extracts the keys, values, or size from an object |
|
|
150 |
</div> |
|
|
151 |
|
|
|
152 |
<div class="description"> |
|
|
153 |
|
|
|
154 |
<dl rel="yui:parameters"> |
|
|
155 |
<dt>Parameters:</dt> |
|
|
156 |
<dd rel="yui:parameter"> |
|
|
157 |
<code><span property="yui:name">o</span> |
|
|
158 |
<<span property="yui:type">object</span>> |
|
|
159 |
</code> |
|
|
160 |
<span property="yui:description"> the object</span> |
|
|
161 |
</dd> |
|
|
162 |
<dd rel="yui:parameter"> |
|
|
163 |
<code><span property="yui:name">what</span> |
|
|
164 |
<<span property="yui:type">object</span>> |
|
|
165 |
</code> |
|
|
166 |
<span property="yui:description"> what to extract (0: keys, 1: values, 2: size)</span> |
|
|
167 |
</dd> |
|
|
168 |
</dl> |
|
|
169 |
|
|
|
170 |
<dl> |
|
|
171 |
<dt>Returns: |
|
|
172 |
<code property="yui:return"> |
|
|
173 |
boolean|Array |
|
|
174 |
</code></dt> |
|
|
175 |
<dd property="yui:returnInfo">the extracted info</dd> |
|
|
176 |
</dl> |
|
|
177 |
|
|
|
178 |
|
|
|
179 |
|
|
|
180 |
|
|
|
181 |
</div> |
|
|
182 |
|
|
|
183 |
</div> |
|
|
184 |
<hr /> |
|
|
185 |
</div> |
|
|
186 |
<div class="" rel="yui:method" resource="#method_each"> |
|
|
187 |
<h4> |
|
|
188 |
<a name="method_each">each</a></h4> |
|
|
189 |
<div class="detail" > |
|
|
190 |
<code> |
|
|
191 |
|
|
|
192 |
static |
|
|
193 |
|
|
|
194 |
YUI |
|
|
195 |
<strong property="yui:name">each</strong> |
|
|
196 |
( |
|
|
197 |
|
|
|
198 |
|
|
|
199 |
o |
|
|
200 |
|
|
|
201 |
|
|
|
202 |
, |
|
|
203 |
f |
|
|
204 |
|
|
|
205 |
|
|
|
206 |
, |
|
|
207 |
c |
|
|
208 |
|
|
|
209 |
|
|
|
210 |
, |
|
|
211 |
proto |
|
|
212 |
|
|
|
213 |
|
|
|
214 |
) |
|
|
215 |
</code> |
|
|
216 |
|
|
|
217 |
<div class="description" property="yui:description"> |
|
|
218 |
Executes a function on each item. The function |
|
|
219 |
receives the value, the key, and the object |
|
|
220 |
as paramters (in that order). |
|
|
221 |
</div> |
|
|
222 |
|
|
|
223 |
<div class="description"> |
|
|
224 |
|
|
|
225 |
<dl rel="yui:parameters"> |
|
|
226 |
<dt>Parameters:</dt> |
|
|
227 |
<dd rel="yui:parameter"> |
|
|
228 |
<code><span property="yui:name">o</span> |
|
|
229 |
<<span property="yui:type">object</span>> |
|
|
230 |
</code> |
|
|
231 |
<span property="yui:description"> the object to iterate</span> |
|
|
232 |
</dd> |
|
|
233 |
<dd rel="yui:parameter"> |
|
|
234 |
<code><span property="yui:name">f</span> |
|
|
235 |
<<span property="yui:type">function</span>> |
|
|
236 |
</code> |
|
|
237 |
<span property="yui:description"> the function to execute</span> |
|
|
238 |
</dd> |
|
|
239 |
<dd rel="yui:parameter"> |
|
|
240 |
<code><span property="yui:name">c</span> |
|
|
241 |
<<span property="yui:type">object</span>> |
|
|
242 |
</code> |
|
|
243 |
<span property="yui:description"> the execution context</span> |
|
|
244 |
</dd> |
|
|
245 |
<dd rel="yui:parameter"> |
|
|
246 |
<code><span property="yui:name">proto</span> |
|
|
247 |
<<span property="yui:type">boolean</span>> |
|
|
248 |
</code> |
|
|
249 |
<span property="yui:description"> include proto</span> |
|
|
250 |
</dd> |
|
|
251 |
</dl> |
|
|
252 |
|
|
|
253 |
<dl> |
|
|
254 |
<dt>Returns: |
|
|
255 |
<code property="yui:return"> |
|
|
256 |
YUI |
|
|
257 |
</code></dt> |
|
|
258 |
<dd property="yui:returnInfo">the YUI instance</dd> |
|
|
259 |
</dl> |
|
|
260 |
|
|
|
261 |
|
|
|
262 |
|
|
|
263 |
|
|
|
264 |
</div> |
|
|
265 |
|
|
|
266 |
</div> |
|
|
267 |
<hr /> |
|
|
268 |
</div> |
|
|
269 |
<div class="" rel="yui:method" resource="#method_getValue"> |
|
|
270 |
<h4> |
|
|
271 |
<a name="method_getValue">getValue</a></h4> |
|
|
272 |
<div class="detail" > |
|
|
273 |
<code> |
|
|
274 |
|
|
|
275 |
|
|
|
276 |
|
|
|
277 |
Any |
|
|
278 |
<strong property="yui:name">getValue</strong> |
|
|
279 |
( |
|
|
280 |
|
|
|
281 |
|
|
|
282 |
o |
|
|
283 |
|
|
|
284 |
|
|
|
285 |
, |
|
|
286 |
path |
|
|
287 |
|
|
|
288 |
|
|
|
289 |
) |
|
|
290 |
</code> |
|
|
291 |
|
|
|
292 |
<div class="description" property="yui:description"> |
|
|
293 |
Retrieves the sub value at the provided path, |
|
|
294 |
from the value object provided. |
|
|
295 |
</div> |
|
|
296 |
|
|
|
297 |
<div class="description"> |
|
|
298 |
|
|
|
299 |
<dl rel="yui:parameters"> |
|
|
300 |
<dt>Parameters:</dt> |
|
|
301 |
<dd rel="yui:parameter"> |
|
|
302 |
<code><span property="yui:name">o</span> |
|
|
303 |
<<span property="yui:type">object</span>> |
|
|
304 |
</code> |
|
|
305 |
<span property="yui:description"> The object from which to extract the property value</span> |
|
|
306 |
</dd> |
|
|
307 |
<dd rel="yui:parameter"> |
|
|
308 |
<code><span property="yui:name">path</span> |
|
|
309 |
<<span property="yui:type">Array</span>> |
|
|
310 |
</code> |
|
|
311 |
<span property="yui:description"> A path array, specifying the object traversal path |
|
|
312 |
from which to obtain the sub value.</span> |
|
|
313 |
</dd> |
|
|
314 |
</dl> |
|
|
315 |
|
|
|
316 |
<dl> |
|
|
317 |
<dt>Returns: |
|
|
318 |
<code property="yui:return"> |
|
|
319 |
Any |
|
|
320 |
</code></dt> |
|
|
321 |
<dd property="yui:returnInfo">The value stored in the path, undefined if not found. |
|
|
322 |
Returns the source object if an empty path is provided.</dd> |
|
|
323 |
</dl> |
|
|
324 |
|
|
|
325 |
|
|
|
326 |
|
|
|
327 |
|
|
|
328 |
</div> |
|
|
329 |
|
|
|
330 |
</div> |
|
|
331 |
<hr /> |
|
|
332 |
</div> |
|
|
333 |
<div class="" rel="yui:method" resource="#method_hasKey"> |
|
|
334 |
<h4> |
|
|
335 |
<a name="method_hasKey">hasKey</a></h4> |
|
|
336 |
<div class="detail" > |
|
|
337 |
<code> |
|
|
338 |
|
|
|
339 |
static |
|
|
340 |
|
|
|
341 |
boolean |
|
|
342 |
<strong property="yui:name">hasKey</strong> |
|
|
343 |
( |
|
|
344 |
|
|
|
345 |
|
|
|
346 |
o |
|
|
347 |
|
|
|
348 |
|
|
|
349 |
, |
|
|
350 |
k |
|
|
351 |
|
|
|
352 |
|
|
|
353 |
) |
|
|
354 |
</code> |
|
|
355 |
|
|
|
356 |
<div class="description" property="yui:description"> |
|
|
357 |
Returns true if the object contains a given key |
|
|
358 |
</div> |
|
|
359 |
|
|
|
360 |
<div class="description"> |
|
|
361 |
|
|
|
362 |
<dl rel="yui:parameters"> |
|
|
363 |
<dt>Parameters:</dt> |
|
|
364 |
<dd rel="yui:parameter"> |
|
|
365 |
<code><span property="yui:name">o</span> |
|
|
366 |
<<span property="yui:type">object</span>> |
|
|
367 |
</code> |
|
|
368 |
<span property="yui:description"> an object</span> |
|
|
369 |
</dd> |
|
|
370 |
<dd rel="yui:parameter"> |
|
|
371 |
<code><span property="yui:name">k</span> |
|
|
372 |
<<span property="yui:type">object</span>> |
|
|
373 |
</code> |
|
|
374 |
<span property="yui:description"> the key to query</span> |
|
|
375 |
</dd> |
|
|
376 |
</dl> |
|
|
377 |
|
|
|
378 |
<dl> |
|
|
379 |
<dt>Returns: |
|
|
380 |
<code property="yui:return"> |
|
|
381 |
boolean |
|
|
382 |
</code></dt> |
|
|
383 |
<dd property="yui:returnInfo">true if the object contains the key</dd> |
|
|
384 |
</dl> |
|
|
385 |
|
|
|
386 |
|
|
|
387 |
|
|
|
388 |
|
|
|
389 |
</div> |
|
|
390 |
|
|
|
391 |
</div> |
|
|
392 |
<hr /> |
|
|
393 |
</div> |
|
|
394 |
<div class="" rel="yui:method" resource="#method_hasValue"> |
|
|
395 |
<h4> |
|
|
396 |
<a name="method_hasValue">hasValue</a></h4> |
|
|
397 |
<div class="detail" > |
|
|
398 |
<code> |
|
|
399 |
|
|
|
400 |
static |
|
|
401 |
|
|
|
402 |
boolean |
|
|
403 |
<strong property="yui:name">hasValue</strong> |
|
|
404 |
( |
|
|
405 |
|
|
|
406 |
|
|
|
407 |
o |
|
|
408 |
|
|
|
409 |
|
|
|
410 |
, |
|
|
411 |
v |
|
|
412 |
|
|
|
413 |
|
|
|
414 |
) |
|
|
415 |
</code> |
|
|
416 |
|
|
|
417 |
<div class="description" property="yui:description"> |
|
|
418 |
Returns true if the object contains a given value |
|
|
419 |
</div> |
|
|
420 |
|
|
|
421 |
<div class="description"> |
|
|
422 |
|
|
|
423 |
<dl rel="yui:parameters"> |
|
|
424 |
<dt>Parameters:</dt> |
|
|
425 |
<dd rel="yui:parameter"> |
|
|
426 |
<code><span property="yui:name">o</span> |
|
|
427 |
<<span property="yui:type">object</span>> |
|
|
428 |
</code> |
|
|
429 |
<span property="yui:description"> an object</span> |
|
|
430 |
</dd> |
|
|
431 |
<dd rel="yui:parameter"> |
|
|
432 |
<code><span property="yui:name">v</span> |
|
|
433 |
<<span property="yui:type">object</span>> |
|
|
434 |
</code> |
|
|
435 |
<span property="yui:description"> the value to query</span> |
|
|
436 |
</dd> |
|
|
437 |
</dl> |
|
|
438 |
|
|
|
439 |
<dl> |
|
|
440 |
<dt>Returns: |
|
|
441 |
<code property="yui:return"> |
|
|
442 |
boolean |
|
|
443 |
</code></dt> |
|
|
444 |
<dd property="yui:returnInfo">true if the object contains the value</dd> |
|
|
445 |
</dl> |
|
|
446 |
|
|
|
447 |
|
|
|
448 |
|
|
|
449 |
|
|
|
450 |
</div> |
|
|
451 |
|
|
|
452 |
</div> |
|
|
453 |
<hr /> |
|
|
454 |
</div> |
|
|
455 |
<div class="" rel="yui:method" resource="#method_keys"> |
|
|
456 |
<h4> |
|
|
457 |
<a name="method_keys">keys</a></h4> |
|
|
458 |
<div class="detail" > |
|
|
459 |
<code> |
|
|
460 |
|
|
|
461 |
static |
|
|
462 |
|
|
|
463 |
string[] |
|
|
464 |
<strong property="yui:name">keys</strong> |
|
|
465 |
( |
|
|
466 |
|
|
|
467 |
|
|
|
468 |
o |
|
|
469 |
|
|
|
470 |
|
|
|
471 |
) |
|
|
472 |
</code> |
|
|
473 |
|
|
|
474 |
<div class="description" property="yui:description"> |
|
|
475 |
Returns an array containing the object's keys |
|
|
476 |
</div> |
|
|
477 |
|
|
|
478 |
<div class="description"> |
|
|
479 |
|
|
|
480 |
<dl rel="yui:parameters"> |
|
|
481 |
<dt>Parameters:</dt> |
|
|
482 |
<dd rel="yui:parameter"> |
|
|
483 |
<code><span property="yui:name">o</span> |
|
|
484 |
<<span property="yui:type">object</span>> |
|
|
485 |
</code> |
|
|
486 |
<span property="yui:description"> an object</span> |
|
|
487 |
</dd> |
|
|
488 |
</dl> |
|
|
489 |
|
|
|
490 |
<dl> |
|
|
491 |
<dt>Returns: |
|
|
492 |
<code property="yui:return"> |
|
|
493 |
string[] |
|
|
494 |
</code></dt> |
|
|
495 |
<dd property="yui:returnInfo">the keys</dd> |
|
|
496 |
</dl> |
|
|
497 |
|
|
|
498 |
|
|
|
499 |
|
|
|
500 |
|
|
|
501 |
</div> |
|
|
502 |
|
|
|
503 |
</div> |
|
|
504 |
<hr /> |
|
|
505 |
</div> |
|
|
506 |
<div class=" deprecated" rel="yui:method" resource="#method_owns"> |
|
|
507 |
<h4> |
|
|
508 |
<a name="method_owns">owns</a></h4> |
|
|
509 |
<div class="detail" > |
|
|
510 |
<code> |
|
|
511 |
|
|
|
512 |
static |
|
|
513 |
|
|
|
514 |
boolean |
|
|
515 |
<strong property="yui:name">owns</strong> |
|
|
516 |
( |
|
|
517 |
|
|
|
518 |
|
|
|
519 |
o |
|
|
520 |
|
|
|
521 |
|
|
|
522 |
, |
|
|
523 |
p |
|
|
524 |
|
|
|
525 |
|
|
|
526 |
) |
|
|
527 |
</code> |
|
|
528 |
|
|
|
529 |
<div class="description" property="yui:description"> |
|
|
530 |
Determines whether or not the property was added |
|
|
531 |
to the object instance. Returns false if the property is not present |
|
|
532 |
in the object, or was inherited from the prototype. |
|
|
533 |
</div> |
|
|
534 |
|
|
|
535 |
<div class="description"> |
|
|
536 |
|
|
|
537 |
<dl rel="yui:parameters"> |
|
|
538 |
<dt>Parameters:</dt> |
|
|
539 |
<dd rel="yui:parameter"> |
|
|
540 |
<code><span property="yui:name">o</span> |
|
|
541 |
<<span property="yui:type">any</span>> |
|
|
542 |
</code> |
|
|
543 |
<span property="yui:description"> The object being testing</span> |
|
|
544 |
</dd> |
|
|
545 |
<dd rel="yui:parameter"> |
|
|
546 |
<code><span property="yui:name">p</span> |
|
|
547 |
<<span property="yui:type">string</span>> |
|
|
548 |
</code> |
|
|
549 |
<span property="yui:description"> the property to look for</span> |
|
|
550 |
</dd> |
|
|
551 |
</dl> |
|
|
552 |
|
|
|
553 |
<dl> |
|
|
554 |
<dt>Returns: |
|
|
555 |
<code property="yui:return"> |
|
|
556 |
boolean |
|
|
557 |
</code></dt> |
|
|
558 |
<dd property="yui:returnInfo">true if the object has the property on the instance</dd> |
|
|
559 |
</dl> |
|
|
560 |
|
|
|
561 |
|
|
|
562 |
|
|
|
563 |
<div class="deprecated"> |
|
|
564 |
<strong>Deprecated</strong> Safari 1.x support has been removed, so this is simply a |
|
|
565 |
wrapper for the native implementation. Use the native implementation |
|
|
566 |
directly instead. |
|
|
567 |
</div> |
|
|
568 |
|
|
|
569 |
</div> |
|
|
570 |
|
|
|
571 |
</div> |
|
|
572 |
<hr /> |
|
|
573 |
</div> |
|
|
574 |
<div class="" rel="yui:method" resource="#method_setValue"> |
|
|
575 |
<h4> |
|
|
576 |
<a name="method_setValue">setValue</a></h4> |
|
|
577 |
<div class="detail" > |
|
|
578 |
<code> |
|
|
579 |
|
|
|
580 |
|
|
|
581 |
|
|
|
582 |
Object |
|
|
583 |
<strong property="yui:name">setValue</strong> |
|
|
584 |
( |
|
|
585 |
|
|
|
586 |
|
|
|
587 |
o |
|
|
588 |
|
|
|
589 |
|
|
|
590 |
, |
|
|
591 |
path |
|
|
592 |
|
|
|
593 |
|
|
|
594 |
, |
|
|
595 |
val |
|
|
596 |
|
|
|
597 |
|
|
|
598 |
) |
|
|
599 |
</code> |
|
|
600 |
|
|
|
601 |
<div class="description" property="yui:description"> |
|
|
602 |
Sets the sub-attribute value at the provided path on the |
|
|
603 |
value object. Returns the modified value object, or |
|
|
604 |
undefined if the path is invalid. |
|
|
605 |
</div> |
|
|
606 |
|
|
|
607 |
<div class="description"> |
|
|
608 |
|
|
|
609 |
<dl rel="yui:parameters"> |
|
|
610 |
<dt>Parameters:</dt> |
|
|
611 |
<dd rel="yui:parameter"> |
|
|
612 |
<code><span property="yui:name">o</span> |
|
|
613 |
<<span property="yui:type">object</span>> |
|
|
614 |
</code> |
|
|
615 |
<span property="yui:description"> The object on which to set the sub value.</span> |
|
|
616 |
</dd> |
|
|
617 |
<dd rel="yui:parameter"> |
|
|
618 |
<code><span property="yui:name">path</span> |
|
|
619 |
<<span property="yui:type">Array</span>> |
|
|
620 |
</code> |
|
|
621 |
<span property="yui:description"> A path array, specifying the object traversal path |
|
|
622 |
at which to set the sub value.</span> |
|
|
623 |
</dd> |
|
|
624 |
<dd rel="yui:parameter"> |
|
|
625 |
<code><span property="yui:name">val</span> |
|
|
626 |
<<span property="yui:type">Any</span>> |
|
|
627 |
</code> |
|
|
628 |
<span property="yui:description"> The new value for the sub-attribute.</span> |
|
|
629 |
</dd> |
|
|
630 |
</dl> |
|
|
631 |
|
|
|
632 |
<dl> |
|
|
633 |
<dt>Returns: |
|
|
634 |
<code property="yui:return"> |
|
|
635 |
Object |
|
|
636 |
</code></dt> |
|
|
637 |
<dd property="yui:returnInfo">The modified object, with the new sub value set, or |
|
|
638 |
undefined, if the path was invalid.</dd> |
|
|
639 |
</dl> |
|
|
640 |
|
|
|
641 |
|
|
|
642 |
|
|
|
643 |
|
|
|
644 |
</div> |
|
|
645 |
|
|
|
646 |
</div> |
|
|
647 |
<hr /> |
|
|
648 |
</div> |
|
|
649 |
<div class="" rel="yui:method" resource="#method_size"> |
|
|
650 |
<h4> |
|
|
651 |
<a name="method_size">size</a></h4> |
|
|
652 |
<div class="detail" > |
|
|
653 |
<code> |
|
|
654 |
|
|
|
655 |
static |
|
|
656 |
|
|
|
657 |
int |
|
|
658 |
<strong property="yui:name">size</strong> |
|
|
659 |
( |
|
|
660 |
|
|
|
661 |
|
|
|
662 |
o |
|
|
663 |
|
|
|
664 |
|
|
|
665 |
) |
|
|
666 |
</code> |
|
|
667 |
|
|
|
668 |
<div class="description" property="yui:description"> |
|
|
669 |
Returns the size of an object |
|
|
670 |
</div> |
|
|
671 |
|
|
|
672 |
<div class="description"> |
|
|
673 |
|
|
|
674 |
<dl rel="yui:parameters"> |
|
|
675 |
<dt>Parameters:</dt> |
|
|
676 |
<dd rel="yui:parameter"> |
|
|
677 |
<code><span property="yui:name">o</span> |
|
|
678 |
<<span property="yui:type">object</span>> |
|
|
679 |
</code> |
|
|
680 |
<span property="yui:description"> an object</span> |
|
|
681 |
</dd> |
|
|
682 |
</dl> |
|
|
683 |
|
|
|
684 |
<dl> |
|
|
685 |
<dt>Returns: |
|
|
686 |
<code property="yui:return"> |
|
|
687 |
int |
|
|
688 |
</code></dt> |
|
|
689 |
<dd property="yui:returnInfo">the size</dd> |
|
|
690 |
</dl> |
|
|
691 |
|
|
|
692 |
|
|
|
693 |
|
|
|
694 |
|
|
|
695 |
</div> |
|
|
696 |
|
|
|
697 |
</div> |
|
|
698 |
<hr /> |
|
|
699 |
</div> |
|
|
700 |
<div class="" rel="yui:method" resource="#method_values"> |
|
|
701 |
<h4> |
|
|
702 |
<a name="method_values">values</a></h4> |
|
|
703 |
<div class="detail" > |
|
|
704 |
<code> |
|
|
705 |
|
|
|
706 |
static |
|
|
707 |
|
|
|
708 |
Array |
|
|
709 |
<strong property="yui:name">values</strong> |
|
|
710 |
( |
|
|
711 |
|
|
|
712 |
|
|
|
713 |
o |
|
|
714 |
|
|
|
715 |
|
|
|
716 |
) |
|
|
717 |
</code> |
|
|
718 |
|
|
|
719 |
<div class="description" property="yui:description"> |
|
|
720 |
Returns an array containing the object's values |
|
|
721 |
</div> |
|
|
722 |
|
|
|
723 |
<div class="description"> |
|
|
724 |
|
|
|
725 |
<dl rel="yui:parameters"> |
|
|
726 |
<dt>Parameters:</dt> |
|
|
727 |
<dd rel="yui:parameter"> |
|
|
728 |
<code><span property="yui:name">o</span> |
|
|
729 |
<<span property="yui:type">object</span>> |
|
|
730 |
</code> |
|
|
731 |
<span property="yui:description"> an object</span> |
|
|
732 |
</dd> |
|
|
733 |
</dl> |
|
|
734 |
|
|
|
735 |
<dl> |
|
|
736 |
<dt>Returns: |
|
|
737 |
<code property="yui:return"> |
|
|
738 |
Array |
|
|
739 |
</code></dt> |
|
|
740 |
<dd property="yui:returnInfo">the values</dd> |
|
|
741 |
</dl> |
|
|
742 |
|
|
|
743 |
|
|
|
744 |
|
|
|
745 |
|
|
|
746 |
</div> |
|
|
747 |
|
|
|
748 |
</div> |
|
|
749 |
<hr /> |
|
|
750 |
</div> |
|
|
751 |
</div> |
|
|
752 |
</div> |
|
|
753 |
|
|
|
754 |
</div> |
|
|
755 |
|
|
|
756 |
<div rel="yui:events" resource="#events"> |
|
|
757 |
|
|
|
758 |
|
|
|
759 |
</div> |
|
|
760 |
|
|
|
761 |
<div rel="yui:attributes" resource="#configattributes"> |
|
|
762 |
|
|
|
763 |
</div> |
|
|
764 |
|
|
|
765 |
</div> |
|
|
766 |
</div> |
|
|
767 |
<div class="yui-b"> |
|
|
768 |
<div class="nav"> |
|
|
769 |
|
|
|
770 |
<div id="moduleList" class="module"> |
|
|
771 |
<h4>Modules</h4> |
|
|
772 |
<ul class="content"> |
|
|
773 |
<li class=""><a href="module_anim.html" title="anim">anim</a></li> |
|
|
774 |
<li class=""><a href="module_attribute.html" title="attribute">attribute</a></li> |
|
|
775 |
<li class=""><a href="module_base.html" title="base">base</a></li> |
|
|
776 |
<li class=""><a href="module_cache.html" title="cache">cache</a></li> |
|
|
777 |
<li class=""><a href="module_classnamemanager.html" title="classnamemanager">classnamemanager</a></li> |
|
|
778 |
<li class=""><a href="module_collection.html" title="collection">collection</a></li> |
|
|
779 |
<li class=""><a href="module_console.html" title="console">console</a></li> |
|
|
780 |
<li class=""><a href="module_console-filters.html" title="console-filters">console-filters</a></li> |
|
|
781 |
<li class=""><a href="module_cookie.html" title="cookie">cookie</a></li> |
|
|
782 |
<li class=""><a href="module_dataschema.html" title="dataschema">dataschema</a></li> |
|
|
783 |
<li class=""><a href="module_datasource.html" title="datasource">datasource</a></li> |
|
|
784 |
<li class=""><a href="module_datatype.html" title="datatype">datatype</a></li> |
|
|
785 |
<li class=""><a href="module_dd.html" title="dd">dd</a></li> |
|
|
786 |
<li class=""><a href="module_dom.html" title="dom">dom</a></li> |
|
|
787 |
<li class=""><a href="module_dump.html" title="dump">dump</a></li> |
|
|
788 |
<li class=""><a href="module_event.html" title="event">event</a></li> |
|
|
789 |
<li class=""><a href="module_event-custom.html" title="event-custom">event-custom</a></li> |
|
|
790 |
<li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li> |
|
|
791 |
<li class=""><a href="module_history.html" title="history">history</a></li> |
|
|
792 |
<li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li> |
|
|
793 |
<li class=""><a href="module_io.html" title="io">io</a></li> |
|
|
794 |
<li class=""><a href="module_json.html" title="json">json</a></li> |
|
|
795 |
<li class=""><a href="module_node.html" title="node">node</a></li> |
|
|
796 |
<li class=""><a href="module_node-focusmanager.html" title="node-focusmanager">node-focusmanager</a></li> |
|
|
797 |
<li class=""><a href="module_node-menunav.html" title="node-menunav">node-menunav</a></li> |
|
|
798 |
<li class=""><a href="module_oop.html" title="oop">oop</a></li> |
|
|
799 |
<li class=""><a href="module_overlay.html" title="overlay">overlay</a></li> |
|
|
800 |
<li class=""><a href="module_plugin.html" title="plugin">plugin</a></li> |
|
|
801 |
<li class=""><a href="module_profiler.html" title="profiler">profiler</a></li> |
|
|
802 |
<li class=""><a href="module_queue.html" title="queue">queue</a></li> |
|
|
803 |
<li class=""><a href="module_slider.html" title="slider">slider</a></li> |
|
|
804 |
<li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li> |
|
|
805 |
<li class=""><a href="module_substitute.html" title="substitute">substitute</a></li> |
|
|
806 |
<li class=""><a href="module_test.html" title="test">test</a></li> |
|
|
807 |
<li class=""><a href="module_widget.html" title="widget">widget</a></li> |
|
|
808 |
<li class=""><a href="module_widget-position.html" title="widget-position">widget-position</a></li> |
|
|
809 |
<li class=""><a href="module_widget-position-ext.html" title="widget-position-ext">widget-position-ext</a></li> |
|
|
810 |
<li class=""><a href="module_widget-stack.html" title="widget-stack">widget-stack</a></li> |
|
|
811 |
<li class=""><a href="module_widget-stdmod.html" title="widget-stdmod">widget-stdmod</a></li> |
|
|
812 |
<li class="selected"><a href="module_yui.html" title="yui">yui</a></li> |
|
|
813 |
</ul> |
|
|
814 |
</div> |
|
|
815 |
|
|
|
816 |
<div id="classList" class="module"> |
|
|
817 |
<h4>Classes</h4> |
|
|
818 |
<ul class="content"> |
|
|
819 |
<li class=""><a href="Array.html" title="Array">Array</a></li> |
|
|
820 |
<li class=""><a href="config.html" title="config">config</a></li> |
|
|
821 |
<li class=""><a href="Get.html" title="Get">Get</a></li> |
|
|
822 |
<li class=""><a href="Lang.html" title="Lang">Lang</a></li> |
|
|
823 |
<li class=""><a href="Loader.html" title="Loader">Loader</a></li> |
|
|
824 |
<li class="selected"><a href="Object.html" title="Object">Object</a></li> |
|
|
825 |
<li class=""><a href="UA.html" title="UA">UA</a></li> |
|
|
826 |
<li class=""><a href="YUI.html" title="YUI">YUI</a></li> |
|
|
827 |
</ul> |
|
|
828 |
</div> |
|
|
829 |
|
|
|
830 |
<div id="fileList" class="module"> |
|
|
831 |
<h4>Files</h4> |
|
|
832 |
<ul class="content"> |
|
|
833 |
<li class=""><a href="_module.js.html" title="_module.js">_module.js</a></li> |
|
|
834 |
<li class=""><a href="get.js.html" title="get.js">get.js</a></li> |
|
|
835 |
<li class=""><a href="loader.js.html" title="loader.js">loader.js</a></li> |
|
|
836 |
<li class=""><a href="yui-array.js.html" title="yui-array.js">yui-array.js</a></li> |
|
|
837 |
<li class=""><a href="yui-base.js.html" title="yui-base.js">yui-base.js</a></li> |
|
|
838 |
<li class=""><a href="yui-core.js.html" title="yui-core.js">yui-core.js</a></li> |
|
|
839 |
<li class=""><a href="yui-init.js.html" title="yui-init.js">yui-init.js</a></li> |
|
|
840 |
<li class=""><a href="yui-lang.js.html" title="yui-lang.js">yui-lang.js</a></li> |
|
|
841 |
<li class=""><a href="yui-later.js.html" title="yui-later.js">yui-later.js</a></li> |
|
|
842 |
<li class=""><a href="yui-log.js.html" title="yui-log.js">yui-log.js</a></li> |
|
|
843 |
<li class=""><a href="yui-object.js.html" title="yui-object.js">yui-object.js</a></li> |
|
|
844 |
<li class=""><a href="yui-ua.js.html" title="yui-ua.js">yui-ua.js</a></li> |
|
|
845 |
<li class=""><a href="yui.js.html" title="yui.js">yui.js</a></li> |
|
|
846 |
</ul> |
|
|
847 |
</div> |
|
|
848 |
|
|
|
849 |
|
|
|
850 |
<div id="methodsList" class="module"> |
|
|
851 |
<h4>Methods</h4> |
|
|
852 |
<ul class="content"> |
|
|
853 |
<li class=""><a href="#method_()" title="()">()</a></li> |
|
|
854 |
<li class="private"><a href="#method__extract" title="_extract">_extract</a></li> |
|
|
855 |
<li class=""><a href="#method_each" title="each">each</a></li> |
|
|
856 |
<li class=""><a href="#method_getValue" title="getValue">getValue</a></li> |
|
|
857 |
<li class=""><a href="#method_hasKey" title="hasKey">hasKey</a></li> |
|
|
858 |
<li class=""><a href="#method_hasValue" title="hasValue">hasValue</a></li> |
|
|
859 |
<li class=""><a href="#method_keys" title="keys">keys</a></li> |
|
|
860 |
<li class=" deprecated"><a href="#method_owns" title="owns">owns</a></li> |
|
|
861 |
<li class=""><a href="#method_setValue" title="setValue">setValue</a></li> |
|
|
862 |
<li class=""><a href="#method_size" title="size">size</a></li> |
|
|
863 |
<li class=""><a href="#method_values" title="values">values</a></li> |
|
|
864 |
</ul> |
|
|
865 |
</div> |
|
|
866 |
|
|
|
867 |
|
|
|
868 |
|
|
|
869 |
</div> |
|
|
870 |
</div> |
|
|
871 |
</div> |
|
|
872 |
<div id="ft"> |
|
|
873 |
<hr /> |
|
|
874 |
Copyright © 2009 Yahoo! Inc. All rights reserved. |
|
|
875 |
</div> |
|
|
876 |
</div> |
|
|
877 |
<script type="text/javascript"> |
|
|
878 |
ALL_YUI_PROPS = [{"access": "", "host": "Object", "name": "()", "url": "Object.html#method_()", "type": "method"}, {"access": "", "host": "Object", "name": "each", "url": "Object.html#method_each", "type": "method"}, {"access": "private", "host": "Object", "name": "_extract", "url": "Object.html#method__extract", "type": "method"}, {"access": "", "host": "Object", "name": "getValue", "url": "Object.html#method_getValue", "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": "Object", "name": "keys", "url": "Object.html#method_keys", "type": "method"}, {"access": "", "host": "Object", "name": "owns", "url": "Object.html#method_owns", "type": "method"}, {"access": "", "host": "Object", "name": "setValue", "url": "Object.html#method_setValue", "type": "method"}, {"access": "", "host": "Object", "name": "size", "url": "Object.html#method_size", "type": "method"}, {"access": "", "host": "Object", "name": "values", "url": "Object.html#method_values", "type": "method"}]; |
|
|
879 |
</script> |
|
|
880 |
</body> |
|
|
881 |
</html> |