|
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: oop YUI~oop (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>oop <span class="subtitle">3.0.0</span></h3> |
|
|
20 |
<a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> |
|
|
21 |
> <a href="./module_oop.html" title="oop">oop</a> |
|
|
22 |
> YUI~oop |
|
|
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">YUI~oop</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 |
The following methods are added 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_aggregate"> |
|
|
75 |
<h4> |
|
|
76 |
<a name="method_aggregate">aggregate</a></h4> |
|
|
77 |
<div class="detail" > |
|
|
78 |
<code> |
|
|
79 |
|
|
|
80 |
|
|
|
81 |
|
|
|
82 |
object |
|
|
83 |
<strong property="yui:name">aggregate</strong> |
|
|
84 |
( |
|
|
85 |
|
|
|
86 |
|
|
|
87 |
r |
|
|
88 |
|
|
|
89 |
|
|
|
90 |
, |
|
|
91 |
s |
|
|
92 |
|
|
|
93 |
|
|
|
94 |
, |
|
|
95 |
ov |
|
|
96 |
|
|
|
97 |
|
|
|
98 |
, |
|
|
99 |
wl |
|
|
100 |
|
|
|
101 |
|
|
|
102 |
) |
|
|
103 |
</code> |
|
|
104 |
|
|
|
105 |
<div class="description" property="yui:description"> |
|
|
106 |
Applies object properties from the supplier to the receiver. If |
|
|
107 |
the target has the property, and the property is an object, the target |
|
|
108 |
object will be augmented with the supplier's value. If the property |
|
|
109 |
is an array, the suppliers value will be appended to the target. |
|
|
110 |
</div> |
|
|
111 |
|
|
|
112 |
<div class="description"> |
|
|
113 |
|
|
|
114 |
<dl rel="yui:parameters"> |
|
|
115 |
<dt>Parameters:</dt> |
|
|
116 |
<dd rel="yui:parameter"> |
|
|
117 |
<code><span property="yui:name">r</span> |
|
|
118 |
<<span property="yui:type">Function</span>> |
|
|
119 |
</code> |
|
|
120 |
<span property="yui:description"> the object to receive the augmentation</span> |
|
|
121 |
</dd> |
|
|
122 |
<dd rel="yui:parameter"> |
|
|
123 |
<code><span property="yui:name">s</span> |
|
|
124 |
<<span property="yui:type">Function</span>> |
|
|
125 |
</code> |
|
|
126 |
<span property="yui:description"> the object that supplies the properties to augment</span> |
|
|
127 |
</dd> |
|
|
128 |
<dd rel="yui:parameter"> |
|
|
129 |
<code><span property="yui:name">ov</span> |
|
|
130 |
<<span property="yui:type">boolean</span>> |
|
|
131 |
</code> |
|
|
132 |
<span property="yui:description"> if true, properties already on the receiver |
|
|
133 |
will be overwritten if found on the supplier.</span> |
|
|
134 |
</dd> |
|
|
135 |
<dd rel="yui:parameter"> |
|
|
136 |
<code><span property="yui:name">wl</span> |
|
|
137 |
<<span property="yui:type">string[]</span>> |
|
|
138 |
</code> |
|
|
139 |
<span property="yui:description"> a whitelist. If supplied, only properties in |
|
|
140 |
this list will be applied to the receiver.</span> |
|
|
141 |
</dd> |
|
|
142 |
</dl> |
|
|
143 |
|
|
|
144 |
<dl> |
|
|
145 |
<dt>Returns: |
|
|
146 |
<code property="yui:return"> |
|
|
147 |
object |
|
|
148 |
</code></dt> |
|
|
149 |
<dd property="yui:returnInfo">the extended object</dd> |
|
|
150 |
</dl> |
|
|
151 |
|
|
|
152 |
|
|
|
153 |
|
|
|
154 |
|
|
|
155 |
</div> |
|
|
156 |
|
|
|
157 |
</div> |
|
|
158 |
<hr /> |
|
|
159 |
</div> |
|
|
160 |
<div class="" rel="yui:method" resource="#method_augment"> |
|
|
161 |
<h4> |
|
|
162 |
<a name="method_augment">augment</a></h4> |
|
|
163 |
<div class="detail" > |
|
|
164 |
<code> |
|
|
165 |
|
|
|
166 |
|
|
|
167 |
|
|
|
168 |
object |
|
|
169 |
<strong property="yui:name">augment</strong> |
|
|
170 |
( |
|
|
171 |
|
|
|
172 |
|
|
|
173 |
r |
|
|
174 |
|
|
|
175 |
|
|
|
176 |
, |
|
|
177 |
s |
|
|
178 |
|
|
|
179 |
|
|
|
180 |
, |
|
|
181 |
ov |
|
|
182 |
|
|
|
183 |
|
|
|
184 |
, |
|
|
185 |
wl |
|
|
186 |
|
|
|
187 |
|
|
|
188 |
, |
|
|
189 |
args |
|
|
190 |
|
|
|
191 |
|
|
|
192 |
) |
|
|
193 |
</code> |
|
|
194 |
|
|
|
195 |
<div class="description" property="yui:description"> |
|
|
196 |
Applies prototype properties from the supplier to the receiver. |
|
|
197 |
The receiver can be a constructor or an instance. |
|
|
198 |
</div> |
|
|
199 |
|
|
|
200 |
<div class="description"> |
|
|
201 |
|
|
|
202 |
<dl rel="yui:parameters"> |
|
|
203 |
<dt>Parameters:</dt> |
|
|
204 |
<dd rel="yui:parameter"> |
|
|
205 |
<code><span property="yui:name">r</span> |
|
|
206 |
<<span property="yui:type">Function</span>> |
|
|
207 |
</code> |
|
|
208 |
<span property="yui:description"> the object to receive the augmentation</span> |
|
|
209 |
</dd> |
|
|
210 |
<dd rel="yui:parameter"> |
|
|
211 |
<code><span property="yui:name">s</span> |
|
|
212 |
<<span property="yui:type">Function</span>> |
|
|
213 |
</code> |
|
|
214 |
<span property="yui:description"> the object that supplies the properties to augment</span> |
|
|
215 |
</dd> |
|
|
216 |
<dd rel="yui:parameter"> |
|
|
217 |
<code><span property="yui:name">ov</span> |
|
|
218 |
<<span property="yui:type">boolean</span>> |
|
|
219 |
</code> |
|
|
220 |
<span property="yui:description"> if true, properties already on the receiver |
|
|
221 |
will be overwritten if found on the supplier.</span> |
|
|
222 |
</dd> |
|
|
223 |
<dd rel="yui:parameter"> |
|
|
224 |
<code><span property="yui:name">wl</span> |
|
|
225 |
<<span property="yui:type">string[]</span>> |
|
|
226 |
</code> |
|
|
227 |
<span property="yui:description"> a whitelist. If supplied, only properties in |
|
|
228 |
this list will be applied to the receiver.</span> |
|
|
229 |
</dd> |
|
|
230 |
<dd rel="yui:parameter"> |
|
|
231 |
<code><span property="yui:name">args</span> |
|
|
232 |
<<span property="yui:type">Array | Any</span>> |
|
|
233 |
</code> |
|
|
234 |
<span property="yui:description"> arg or arguments to apply to the supplier |
|
|
235 |
constructor when initializing.</span> |
|
|
236 |
</dd> |
|
|
237 |
</dl> |
|
|
238 |
|
|
|
239 |
<dl> |
|
|
240 |
<dt>Returns: |
|
|
241 |
<code property="yui:return"> |
|
|
242 |
object |
|
|
243 |
</code></dt> |
|
|
244 |
<dd property="yui:returnInfo">the augmented object</dd> |
|
|
245 |
</dl> |
|
|
246 |
|
|
|
247 |
|
|
|
248 |
|
|
|
249 |
|
|
|
250 |
</div> |
|
|
251 |
|
|
|
252 |
</div> |
|
|
253 |
<hr /> |
|
|
254 |
</div> |
|
|
255 |
<div class="" rel="yui:method" resource="#method_bind"> |
|
|
256 |
<h4> |
|
|
257 |
<a name="method_bind">bind</a></h4> |
|
|
258 |
<div class="detail" > |
|
|
259 |
<code> |
|
|
260 |
|
|
|
261 |
|
|
|
262 |
|
|
|
263 |
function |
|
|
264 |
<strong property="yui:name">bind</strong> |
|
|
265 |
( |
|
|
266 |
|
|
|
267 |
|
|
|
268 |
f |
|
|
269 |
|
|
|
270 |
|
|
|
271 |
, |
|
|
272 |
c |
|
|
273 |
|
|
|
274 |
|
|
|
275 |
, |
|
|
276 |
args* |
|
|
277 |
|
|
|
278 |
|
|
|
279 |
) |
|
|
280 |
</code> |
|
|
281 |
|
|
|
282 |
<div class="description" property="yui:description"> |
|
|
283 |
Returns a function that will execute the supplied function in the |
|
|
284 |
supplied object's context, optionally adding any additional |
|
|
285 |
supplied parameters to the beginning of the arguments collection the |
|
|
286 |
supplied to the function. |
|
|
287 |
</div> |
|
|
288 |
|
|
|
289 |
<div class="description"> |
|
|
290 |
|
|
|
291 |
<dl rel="yui:parameters"> |
|
|
292 |
<dt>Parameters:</dt> |
|
|
293 |
<dd rel="yui:parameter"> |
|
|
294 |
<code><span property="yui:name">f</span> |
|
|
295 |
<<span property="yui:type">Function|String</span>> |
|
|
296 |
</code> |
|
|
297 |
<span property="yui:description"> the function to bind, or a function name |
|
|
298 |
to execute on the context object</span> |
|
|
299 |
</dd> |
|
|
300 |
<dd rel="yui:parameter"> |
|
|
301 |
<code><span property="yui:name">c</span> |
|
|
302 |
<<span property="yui:type">object</span>> |
|
|
303 |
</code> |
|
|
304 |
<span property="yui:description"> the execution context</span> |
|
|
305 |
</dd> |
|
|
306 |
<dd rel="yui:parameter"> |
|
|
307 |
<code><span property="yui:name">args*</span> |
|
|
308 |
<<span property="yui:type">object</span>> |
|
|
309 |
</code> |
|
|
310 |
<span property="yui:description"> 0..n arguments to include before the arguments the |
|
|
311 |
function is executed with.</span> |
|
|
312 |
</dd> |
|
|
313 |
</dl> |
|
|
314 |
|
|
|
315 |
<dl> |
|
|
316 |
<dt>Returns: |
|
|
317 |
<code property="yui:return"> |
|
|
318 |
function |
|
|
319 |
</code></dt> |
|
|
320 |
<dd property="yui:returnInfo">the wrapped function</dd> |
|
|
321 |
</dl> |
|
|
322 |
|
|
|
323 |
|
|
|
324 |
|
|
|
325 |
|
|
|
326 |
</div> |
|
|
327 |
|
|
|
328 |
</div> |
|
|
329 |
<hr /> |
|
|
330 |
</div> |
|
|
331 |
<div class="" rel="yui:method" resource="#method_clone"> |
|
|
332 |
<h4> |
|
|
333 |
<a name="method_clone">clone</a></h4> |
|
|
334 |
<div class="detail" > |
|
|
335 |
<code> |
|
|
336 |
|
|
|
337 |
|
|
|
338 |
|
|
|
339 |
Array|Object |
|
|
340 |
<strong property="yui:name">clone</strong> |
|
|
341 |
( |
|
|
342 |
|
|
|
343 |
|
|
|
344 |
o |
|
|
345 |
|
|
|
346 |
|
|
|
347 |
, |
|
|
348 |
safe |
|
|
349 |
|
|
|
350 |
|
|
|
351 |
, |
|
|
352 |
f |
|
|
353 |
|
|
|
354 |
|
|
|
355 |
, |
|
|
356 |
c |
|
|
357 |
|
|
|
358 |
|
|
|
359 |
, |
|
|
360 |
owner |
|
|
361 |
|
|
|
362 |
|
|
|
363 |
) |
|
|
364 |
</code> |
|
|
365 |
|
|
|
366 |
<div class="description" property="yui:description"> |
|
|
367 |
Deep obj/array copy. Functions are cloned with Y.bind. |
|
|
368 |
Array-like objects are treated as arrays. |
|
|
369 |
Primitives are returned untouched. Optionally, a |
|
|
370 |
function can be provided to handle other data types, |
|
|
371 |
filter keys, validate values, etc. |
|
|
372 |
</div> |
|
|
373 |
|
|
|
374 |
<div class="description"> |
|
|
375 |
|
|
|
376 |
<dl rel="yui:parameters"> |
|
|
377 |
<dt>Parameters:</dt> |
|
|
378 |
<dd rel="yui:parameter"> |
|
|
379 |
<code><span property="yui:name">o</span> |
|
|
380 |
<<span property="yui:type">object</span>> |
|
|
381 |
</code> |
|
|
382 |
<span property="yui:description"> what to clone</span> |
|
|
383 |
</dd> |
|
|
384 |
<dd rel="yui:parameter"> |
|
|
385 |
<code><span property="yui:name">safe</span> |
|
|
386 |
<<span property="yui:type">boolean</span>> |
|
|
387 |
</code> |
|
|
388 |
<span property="yui:description"> if true, objects will not have prototype |
|
|
389 |
items from the source. If false, they will. In this case, the |
|
|
390 |
original is initially protected, but the clone is not completely immune |
|
|
391 |
from changes to the source object prototype. Also, cloned prototype |
|
|
392 |
items that are deleted from the clone will result in the value |
|
|
393 |
of the source prototype being exposed. If operating on a non-safe |
|
|
394 |
clone, items should be nulled out rather than deleted.</span> |
|
|
395 |
</dd> |
|
|
396 |
<dd rel="yui:parameter"> |
|
|
397 |
<code><span property="yui:name">f</span> |
|
|
398 |
<<span property="yui:type">object</span>> |
|
|
399 |
</code> |
|
|
400 |
<span property="yui:description"> optional function to apply to each item in a collection; |
|
|
401 |
it will be executed prior to applying the value to |
|
|
402 |
the new object. Return false to prevent the copy.</span> |
|
|
403 |
</dd> |
|
|
404 |
<dd rel="yui:parameter"> |
|
|
405 |
<code><span property="yui:name">c</span> |
|
|
406 |
<<span property="yui:type">object</span>> |
|
|
407 |
</code> |
|
|
408 |
<span property="yui:description"> optional execution context for f</span> |
|
|
409 |
</dd> |
|
|
410 |
<dd rel="yui:parameter"> |
|
|
411 |
<code><span property="yui:name">owner</span> |
|
|
412 |
<<span property="yui:type">object</span>> |
|
|
413 |
</code> |
|
|
414 |
<span property="yui:description"> Owner object passed when clone is iterating an |
|
|
415 |
object. Used to set up context for cloned functions.</span> |
|
|
416 |
</dd> |
|
|
417 |
</dl> |
|
|
418 |
|
|
|
419 |
<dl> |
|
|
420 |
<dt>Returns: |
|
|
421 |
<code property="yui:return"> |
|
|
422 |
Array|Object |
|
|
423 |
</code></dt> |
|
|
424 |
<dd property="yui:returnInfo">the cloned object</dd> |
|
|
425 |
</dl> |
|
|
426 |
|
|
|
427 |
|
|
|
428 |
|
|
|
429 |
|
|
|
430 |
</div> |
|
|
431 |
|
|
|
432 |
</div> |
|
|
433 |
<hr /> |
|
|
434 |
</div> |
|
|
435 |
<div class="" rel="yui:method" resource="#method_each"> |
|
|
436 |
<h4> |
|
|
437 |
<a name="method_each">each</a></h4> |
|
|
438 |
<div class="detail" > |
|
|
439 |
<code> |
|
|
440 |
|
|
|
441 |
|
|
|
442 |
|
|
|
443 |
YUI |
|
|
444 |
<strong property="yui:name">each</strong> |
|
|
445 |
( |
|
|
446 |
|
|
|
447 |
|
|
|
448 |
o |
|
|
449 |
|
|
|
450 |
|
|
|
451 |
, |
|
|
452 |
f |
|
|
453 |
|
|
|
454 |
|
|
|
455 |
, |
|
|
456 |
proto |
|
|
457 |
|
|
|
458 |
|
|
|
459 |
) |
|
|
460 |
</code> |
|
|
461 |
|
|
|
462 |
<div class="description" property="yui:description"> |
|
|
463 |
Executes the supplied function for each item in |
|
|
464 |
a collection. Supports arrays, objects, and |
|
|
465 |
Y.NodeLists |
|
|
466 |
</div> |
|
|
467 |
|
|
|
468 |
<div class="description"> |
|
|
469 |
|
|
|
470 |
<dl rel="yui:parameters"> |
|
|
471 |
<dt>Parameters:</dt> |
|
|
472 |
<dd rel="yui:parameter"> |
|
|
473 |
<code><span property="yui:name">o</span> |
|
|
474 |
<<span property="yui:type">object</span>> |
|
|
475 |
</code> |
|
|
476 |
<span property="yui:description"> the object to iterate</span> |
|
|
477 |
</dd> |
|
|
478 |
<dd rel="yui:parameter"> |
|
|
479 |
<code><span property="yui:name">f</span> |
|
|
480 |
<<span property="yui:type">object</span>> |
|
|
481 |
</code> |
|
|
482 |
<span property="yui:description"> the function to execute. This function |
|
|
483 |
receives the value, key, and object as parameters</span> |
|
|
484 |
</dd> |
|
|
485 |
<dd rel="yui:parameter"> |
|
|
486 |
<code><span property="yui:name">proto</span> |
|
|
487 |
<<span property="yui:type">object</span>> |
|
|
488 |
</code> |
|
|
489 |
<span property="yui:description"> if true, prototype properties are |
|
|
490 |
iterated on objects</span> |
|
|
491 |
</dd> |
|
|
492 |
</dl> |
|
|
493 |
|
|
|
494 |
<dl> |
|
|
495 |
<dt>Returns: |
|
|
496 |
<code property="yui:return"> |
|
|
497 |
YUI |
|
|
498 |
</code></dt> |
|
|
499 |
<dd property="yui:returnInfo">the YUI instance</dd> |
|
|
500 |
</dl> |
|
|
501 |
|
|
|
502 |
|
|
|
503 |
|
|
|
504 |
|
|
|
505 |
</div> |
|
|
506 |
|
|
|
507 |
</div> |
|
|
508 |
<hr /> |
|
|
509 |
</div> |
|
|
510 |
<div class="" rel="yui:method" resource="#method_extend"> |
|
|
511 |
<h4> |
|
|
512 |
<a name="method_extend">extend</a></h4> |
|
|
513 |
<div class="detail" > |
|
|
514 |
<code> |
|
|
515 |
|
|
|
516 |
|
|
|
517 |
|
|
|
518 |
YUI |
|
|
519 |
<strong property="yui:name">extend</strong> |
|
|
520 |
( |
|
|
521 |
|
|
|
522 |
|
|
|
523 |
r |
|
|
524 |
|
|
|
525 |
|
|
|
526 |
, |
|
|
527 |
s |
|
|
528 |
|
|
|
529 |
|
|
|
530 |
, |
|
|
531 |
px |
|
|
532 |
|
|
|
533 |
|
|
|
534 |
, |
|
|
535 |
sx |
|
|
536 |
|
|
|
537 |
|
|
|
538 |
) |
|
|
539 |
</code> |
|
|
540 |
|
|
|
541 |
<div class="description" property="yui:description"> |
|
|
542 |
Utility to set up the prototype, constructor and superclass properties to |
|
|
543 |
support an inheritance strategy that can chain constructors and methods. |
|
|
544 |
Static members will not be inherited. |
|
|
545 |
</div> |
|
|
546 |
|
|
|
547 |
<div class="description"> |
|
|
548 |
|
|
|
549 |
<dl rel="yui:parameters"> |
|
|
550 |
<dt>Parameters:</dt> |
|
|
551 |
<dd rel="yui:parameter"> |
|
|
552 |
<code><span property="yui:name">r</span> |
|
|
553 |
<<span property="yui:type">Function</span>> |
|
|
554 |
</code> |
|
|
555 |
<span property="yui:description"> the object to modify</span> |
|
|
556 |
</dd> |
|
|
557 |
<dd rel="yui:parameter"> |
|
|
558 |
<code><span property="yui:name">s</span> |
|
|
559 |
<<span property="yui:type">Function</span>> |
|
|
560 |
</code> |
|
|
561 |
<span property="yui:description"> the object to inherit</span> |
|
|
562 |
</dd> |
|
|
563 |
<dd rel="yui:parameter"> |
|
|
564 |
<code><span property="yui:name">px</span> |
|
|
565 |
<<span property="yui:type">Object</span>> |
|
|
566 |
</code> |
|
|
567 |
<span property="yui:description"> prototype properties to add/override</span> |
|
|
568 |
</dd> |
|
|
569 |
<dd rel="yui:parameter"> |
|
|
570 |
<code><span property="yui:name">sx</span> |
|
|
571 |
<<span property="yui:type">Object</span>> |
|
|
572 |
</code> |
|
|
573 |
<span property="yui:description"> static properties to add/override</span> |
|
|
574 |
</dd> |
|
|
575 |
</dl> |
|
|
576 |
|
|
|
577 |
<dl> |
|
|
578 |
<dt>Returns: |
|
|
579 |
<code property="yui:return"> |
|
|
580 |
YUI |
|
|
581 |
</code></dt> |
|
|
582 |
<dd property="yui:returnInfo">the YUI instance</dd> |
|
|
583 |
</dl> |
|
|
584 |
|
|
|
585 |
|
|
|
586 |
|
|
|
587 |
|
|
|
588 |
</div> |
|
|
589 |
|
|
|
590 |
</div> |
|
|
591 |
<hr /> |
|
|
592 |
</div> |
|
|
593 |
<div class="" rel="yui:method" resource="#method_rbind"> |
|
|
594 |
<h4> |
|
|
595 |
<a name="method_rbind">rbind</a></h4> |
|
|
596 |
<div class="detail" > |
|
|
597 |
<code> |
|
|
598 |
|
|
|
599 |
|
|
|
600 |
|
|
|
601 |
function |
|
|
602 |
<strong property="yui:name">rbind</strong> |
|
|
603 |
( |
|
|
604 |
|
|
|
605 |
|
|
|
606 |
f |
|
|
607 |
|
|
|
608 |
|
|
|
609 |
, |
|
|
610 |
c |
|
|
611 |
|
|
|
612 |
|
|
|
613 |
, |
|
|
614 |
args* |
|
|
615 |
|
|
|
616 |
|
|
|
617 |
) |
|
|
618 |
</code> |
|
|
619 |
|
|
|
620 |
<div class="description" property="yui:description"> |
|
|
621 |
Returns a function that will execute the supplied function in the |
|
|
622 |
supplied object's context, optionally adding any additional |
|
|
623 |
supplied parameters to the end of the arguments the function |
|
|
624 |
is executed with. |
|
|
625 |
</div> |
|
|
626 |
|
|
|
627 |
<div class="description"> |
|
|
628 |
|
|
|
629 |
<dl rel="yui:parameters"> |
|
|
630 |
<dt>Parameters:</dt> |
|
|
631 |
<dd rel="yui:parameter"> |
|
|
632 |
<code><span property="yui:name">f</span> |
|
|
633 |
<<span property="yui:type">Function|String</span>> |
|
|
634 |
</code> |
|
|
635 |
<span property="yui:description"> the function to bind, or a function name |
|
|
636 |
to execute on the context object</span> |
|
|
637 |
</dd> |
|
|
638 |
<dd rel="yui:parameter"> |
|
|
639 |
<code><span property="yui:name">c</span> |
|
|
640 |
<<span property="yui:type">object</span>> |
|
|
641 |
</code> |
|
|
642 |
<span property="yui:description"> the execution context</span> |
|
|
643 |
</dd> |
|
|
644 |
<dd rel="yui:parameter"> |
|
|
645 |
<code><span property="yui:name">args*</span> |
|
|
646 |
<<span property="yui:type">object</span>> |
|
|
647 |
</code> |
|
|
648 |
<span property="yui:description"> 0..n arguments to append to the end of arguments collection |
|
|
649 |
supplied to the function</span> |
|
|
650 |
</dd> |
|
|
651 |
</dl> |
|
|
652 |
|
|
|
653 |
<dl> |
|
|
654 |
<dt>Returns: |
|
|
655 |
<code property="yui:return"> |
|
|
656 |
function |
|
|
657 |
</code></dt> |
|
|
658 |
<dd property="yui:returnInfo">the wrapped function</dd> |
|
|
659 |
</dl> |
|
|
660 |
|
|
|
661 |
|
|
|
662 |
|
|
|
663 |
|
|
|
664 |
</div> |
|
|
665 |
|
|
|
666 |
</div> |
|
|
667 |
<hr /> |
|
|
668 |
</div> |
|
|
669 |
</div> |
|
|
670 |
</div> |
|
|
671 |
|
|
|
672 |
</div> |
|
|
673 |
|
|
|
674 |
<div rel="yui:events" resource="#events"> |
|
|
675 |
|
|
|
676 |
|
|
|
677 |
</div> |
|
|
678 |
|
|
|
679 |
<div rel="yui:attributes" resource="#configattributes"> |
|
|
680 |
|
|
|
681 |
</div> |
|
|
682 |
|
|
|
683 |
</div> |
|
|
684 |
</div> |
|
|
685 |
<div class="yui-b"> |
|
|
686 |
<div class="nav"> |
|
|
687 |
|
|
|
688 |
<div id="moduleList" class="module"> |
|
|
689 |
<h4>Modules</h4> |
|
|
690 |
<ul class="content"> |
|
|
691 |
<li class=""><a href="module_anim.html" title="anim">anim</a></li> |
|
|
692 |
<li class=""><a href="module_async-queue.html" title="async-queue">async-queue</a></li> |
|
|
693 |
<li class=""><a href="module_attribute.html" title="attribute">attribute</a></li> |
|
|
694 |
<li class=""><a href="module_base.html" title="base">base</a></li> |
|
|
695 |
<li class=""><a href="module_cache.html" title="cache">cache</a></li> |
|
|
696 |
<li class=""><a href="module_classnamemanager.html" title="classnamemanager">classnamemanager</a></li> |
|
|
697 |
<li class=""><a href="module_collection.html" title="collection">collection</a></li> |
|
|
698 |
<li class=""><a href="module_console.html" title="console">console</a></li> |
|
|
699 |
<li class=""><a href="module_console-filters.html" title="console-filters">console-filters</a></li> |
|
|
700 |
<li class=""><a href="module_cookie.html" title="cookie">cookie</a></li> |
|
|
701 |
<li class=""><a href="module_dataschema.html" title="dataschema">dataschema</a></li> |
|
|
702 |
<li class=""><a href="module_datasource.html" title="datasource">datasource</a></li> |
|
|
703 |
<li class=""><a href="module_datatype.html" title="datatype">datatype</a></li> |
|
|
704 |
<li class=""><a href="module_dd.html" title="dd">dd</a></li> |
|
|
705 |
<li class=""><a href="module_dom.html" title="dom">dom</a></li> |
|
|
706 |
<li class=""><a href="module_dump.html" title="dump">dump</a></li> |
|
|
707 |
<li class=""><a href="module_event.html" title="event">event</a></li> |
|
|
708 |
<li class=""><a href="module_event-custom.html" title="event-custom">event-custom</a></li> |
|
|
709 |
<li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li> |
|
|
710 |
<li class=""><a href="module_history.html" title="history">history</a></li> |
|
|
711 |
<li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li> |
|
|
712 |
<li class=""><a href="module_io.html" title="io">io</a></li> |
|
|
713 |
<li class=""><a href="module_json.html" title="json">json</a></li> |
|
|
714 |
<li class=""><a href="module_node.html" title="node">node</a></li> |
|
|
715 |
<li class=""><a href="module_node-focusmanager.html" title="node-focusmanager">node-focusmanager</a></li> |
|
|
716 |
<li class=""><a href="module_node-menunav.html" title="node-menunav">node-menunav</a></li> |
|
|
717 |
<li class="selected"><a href="module_oop.html" title="oop">oop</a></li> |
|
|
718 |
<li class=""><a href="module_overlay.html" title="overlay">overlay</a></li> |
|
|
719 |
<li class=""><a href="module_plugin.html" title="plugin">plugin</a></li> |
|
|
720 |
<li class=""><a href="module_profiler.html" title="profiler">profiler</a></li> |
|
|
721 |
<li class=""><a href="module_queue-promote.html" title="queue-promote">queue-promote</a></li> |
|
|
722 |
<li class=""><a href="module_slider.html" title="slider">slider</a></li> |
|
|
723 |
<li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li> |
|
|
724 |
<li class=""><a href="module_substitute.html" title="substitute">substitute</a></li> |
|
|
725 |
<li class=""><a href="module_test.html" title="test">test</a></li> |
|
|
726 |
<li class=""><a href="module_widget.html" title="widget">widget</a></li> |
|
|
727 |
<li class=""><a href="module_widget-position.html" title="widget-position">widget-position</a></li> |
|
|
728 |
<li class=""><a href="module_widget-position-ext.html" title="widget-position-ext">widget-position-ext</a></li> |
|
|
729 |
<li class=""><a href="module_widget-stack.html" title="widget-stack">widget-stack</a></li> |
|
|
730 |
<li class=""><a href="module_widget-stdmod.html" title="widget-stdmod">widget-stdmod</a></li> |
|
|
731 |
<li class=""><a href="module_yui.html" title="yui">yui</a></li> |
|
|
732 |
</ul> |
|
|
733 |
</div> |
|
|
734 |
|
|
|
735 |
<div id="classList" class="module"> |
|
|
736 |
<h4>Classes</h4> |
|
|
737 |
<ul class="content"> |
|
|
738 |
<li class="selected"><a href="YUI~oop.html" title="YUI~oop">YUI~oop</a></li> |
|
|
739 |
</ul> |
|
|
740 |
</div> |
|
|
741 |
|
|
|
742 |
<div id="fileList" class="module"> |
|
|
743 |
<h4>Files</h4> |
|
|
744 |
<ul class="content"> |
|
|
745 |
<li class=""><a href="oop.js.html" title="oop.js">oop.js</a></li> |
|
|
746 |
</ul> |
|
|
747 |
</div> |
|
|
748 |
|
|
|
749 |
|
|
|
750 |
<div id="methodsList" class="module"> |
|
|
751 |
<h4>Methods</h4> |
|
|
752 |
<ul class="content"> |
|
|
753 |
<li class=""><a href="#method_aggregate" title="aggregate">aggregate</a></li> |
|
|
754 |
<li class=""><a href="#method_augment" title="augment">augment</a></li> |
|
|
755 |
<li class=""><a href="#method_bind" title="bind">bind</a></li> |
|
|
756 |
<li class=""><a href="#method_clone" title="clone">clone</a></li> |
|
|
757 |
<li class=""><a href="#method_each" title="each">each</a></li> |
|
|
758 |
<li class=""><a href="#method_extend" title="extend">extend</a></li> |
|
|
759 |
<li class=""><a href="#method_rbind" title="rbind">rbind</a></li> |
|
|
760 |
</ul> |
|
|
761 |
</div> |
|
|
762 |
|
|
|
763 |
|
|
|
764 |
|
|
|
765 |
</div> |
|
|
766 |
</div> |
|
|
767 |
</div> |
|
|
768 |
<div id="ft"> |
|
|
769 |
<hr /> |
|
|
770 |
Copyright © 2009 Yahoo! Inc. All rights reserved. |
|
|
771 |
</div> |
|
|
772 |
</div> |
|
|
773 |
<script type="text/javascript"> |
|
|
774 |
ALL_YUI_PROPS = [{"access": "", "host": "YUI~oop", "name": "aggregate", "url": "YUI~oop.html#method_aggregate", "type": "method"}, {"access": "", "host": "YUI~oop", "name": "augment", "url": "YUI~oop.html#method_augment", "type": "method"}, {"access": "", "host": "YUI~oop", "name": "bind", "url": "YUI~oop.html#method_bind", "type": "method"}, {"access": "", "host": "YUI~oop", "name": "clone", "url": "YUI~oop.html#method_clone", "type": "method"}, {"access": "", "host": "YUI~oop", "name": "each", "url": "YUI~oop.html#method_each", "type": "method"}, {"access": "", "host": "YUI~oop", "name": "extend", "url": "YUI~oop.html#method_extend", "type": "method"}, {"access": "", "host": "YUI~oop", "name": "rbind", "url": "YUI~oop.html#method_rbind", "type": "method"}]; |
|
|
775 |
</script> |
|
|
776 |
</body> |
|
|
777 |
</html> |