|
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: event Event (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>event <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_event.html" title="event">event</a> |
|
|
22 |
> Event |
|
|
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 |
<code>static</code> |
|
|
50 |
|
|
|
51 |
Class <b property="yui:name">Event</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 event utility provides functions to add and remove event listeners, |
|
|
63 |
event cleansing. It also tries to automatically remove listeners it |
|
|
64 |
registers during the unload event. |
|
|
65 |
</div> |
|
|
66 |
|
|
|
67 |
|
|
|
68 |
<div rel="yui:properties" resource="#properties"> |
|
|
69 |
<div class="section field details"> |
|
|
70 |
<h3 id="properties">Properties</h3> |
|
|
71 |
<div class="content"> |
|
|
72 |
<div class="private" rel="yui:property" resource="#property__avail"> |
|
|
73 |
<h4><a name="property__avail" property="yui:name">_avail</a> |
|
|
74 |
- <code>private static <span property="yui:type">object</span></code> |
|
|
75 |
</h4> |
|
|
76 |
<div class="detail"> |
|
|
77 |
<div class="description" property="yui:description"> |
|
|
78 |
onAvailable listeners |
|
|
79 |
</div> |
|
|
80 |
</div> |
|
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
<hr /> |
|
|
86 |
</div> |
|
|
87 |
<div class="private" rel="yui:property" resource="#property__dri"> |
|
|
88 |
<h4><a name="property__dri" property="yui:name">_dri</a> |
|
|
89 |
- <code>private static <span property="yui:type">object</span></code> |
|
|
90 |
</h4> |
|
|
91 |
<div class="detail"> |
|
|
92 |
<div class="description" property="yui:description"> |
|
|
93 |
document readystate poll handle |
|
|
94 |
</div> |
|
|
95 |
</div> |
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
|
|
|
100 |
<hr /> |
|
|
101 |
</div> |
|
|
102 |
<div class="private" rel="yui:property" resource="#property__el_events"> |
|
|
103 |
<h4><a name="property__el_events" property="yui:name">_el_events</a> |
|
|
104 |
- <code>private static <span property="yui:type">object</span></code> |
|
|
105 |
</h4> |
|
|
106 |
<div class="detail"> |
|
|
107 |
<div class="description" property="yui:description"> |
|
|
108 |
Custom event wrapper map DOM events. Key is |
|
|
109 |
Element uid stamp. Each item is a hash of custom event |
|
|
110 |
wrappers as provided in the _wrappers collection. This |
|
|
111 |
provides the infrastructure for getListeners. |
|
|
112 |
</div> |
|
|
113 |
</div> |
|
|
114 |
|
|
|
115 |
|
|
|
116 |
|
|
|
117 |
|
|
|
118 |
<hr /> |
|
|
119 |
</div> |
|
|
120 |
<div class="private" rel="yui:property" resource="#property__interval"> |
|
|
121 |
<h4><a name="property__interval" property="yui:name">_interval</a> |
|
|
122 |
- <code>private static <span property="yui:type">object</span></code> |
|
|
123 |
</h4> |
|
|
124 |
<div class="detail"> |
|
|
125 |
<div class="description" property="yui:description"> |
|
|
126 |
poll handle |
|
|
127 |
</div> |
|
|
128 |
</div> |
|
|
129 |
|
|
|
130 |
|
|
|
131 |
|
|
|
132 |
|
|
|
133 |
<hr /> |
|
|
134 |
</div> |
|
|
135 |
<div class="private" rel="yui:property" resource="#property__loadComplete"> |
|
|
136 |
<h4><a name="property__loadComplete" property="yui:name">_loadComplete</a> |
|
|
137 |
- <code>private static <span property="yui:type">boolean</span></code> |
|
|
138 |
</h4> |
|
|
139 |
<div class="detail"> |
|
|
140 |
<div class="description" property="yui:description"> |
|
|
141 |
True after the onload event has fired |
|
|
142 |
</div> |
|
|
143 |
</div> |
|
|
144 |
|
|
|
145 |
|
|
|
146 |
|
|
|
147 |
|
|
|
148 |
<hr /> |
|
|
149 |
</div> |
|
|
150 |
<div class="private" rel="yui:property" resource="#property__retryCount"> |
|
|
151 |
<h4><a name="property__retryCount" property="yui:name">_retryCount</a> |
|
|
152 |
- <code>private static <span property="yui:type">object</span></code> |
|
|
153 |
</h4> |
|
|
154 |
<div class="detail"> |
|
|
155 |
<div class="description" property="yui:description"> |
|
|
156 |
The number of times to poll after window.onload. This number is |
|
|
157 |
increased if additional late-bound handlers are requested after |
|
|
158 |
the page load. |
|
|
159 |
</div> |
|
|
160 |
</div> |
|
|
161 |
|
|
|
162 |
|
|
|
163 |
|
|
|
164 |
|
|
|
165 |
<hr /> |
|
|
166 |
</div> |
|
|
167 |
<div class="private" rel="yui:property" resource="#property__wrappers"> |
|
|
168 |
<h4><a name="property__wrappers" property="yui:name">_wrappers</a> |
|
|
169 |
- <code>private static <span property="yui:type">Y.Event.Custom</span></code> |
|
|
170 |
</h4> |
|
|
171 |
<div class="detail"> |
|
|
172 |
<div class="description" property="yui:description"> |
|
|
173 |
Custom event wrappers for DOM events. Key is |
|
|
174 |
'event:' + Element uid stamp + event type |
|
|
175 |
</div> |
|
|
176 |
</div> |
|
|
177 |
|
|
|
178 |
|
|
|
179 |
|
|
|
180 |
|
|
|
181 |
<hr /> |
|
|
182 |
</div> |
|
|
183 |
<div class="" rel="yui:property" resource="#property_DOMReady"> |
|
|
184 |
<h4><a name="property_DOMReady" property="yui:name">DOMReady</a> |
|
|
185 |
- <code>static <span property="yui:type">boolean</span></code> |
|
|
186 |
</h4> |
|
|
187 |
<div class="detail"> |
|
|
188 |
<div class="description" property="yui:description"> |
|
|
189 |
True when the document is initially usable |
|
|
190 |
</div> |
|
|
191 |
</div> |
|
|
192 |
|
|
|
193 |
|
|
|
194 |
|
|
|
195 |
|
|
|
196 |
<hr /> |
|
|
197 |
</div> |
|
|
198 |
<div class="" rel="yui:property" resource="#property_lastError"> |
|
|
199 |
<h4><a name="property_lastError" property="yui:name">lastError</a> |
|
|
200 |
- <code>static <span property="yui:type">Error</span></code> |
|
|
201 |
</h4> |
|
|
202 |
<div class="detail"> |
|
|
203 |
<div class="description" property="yui:description"> |
|
|
204 |
addListener/removeListener can throw errors in unexpected scenarios. |
|
|
205 |
These errors are suppressed, the method returns false, and this property |
|
|
206 |
is set |
|
|
207 |
</div> |
|
|
208 |
</div> |
|
|
209 |
|
|
|
210 |
|
|
|
211 |
|
|
|
212 |
|
|
|
213 |
<hr /> |
|
|
214 |
</div> |
|
|
215 |
<div class="" rel="yui:property" resource="#property_POLL_INTERVAL"> |
|
|
216 |
<h4><a name="property_POLL_INTERVAL" property="yui:name">POLL_INTERVAL</a> |
|
|
217 |
- <code>static final <span property="yui:type">int</span></code> |
|
|
218 |
</h4> |
|
|
219 |
<div class="detail"> |
|
|
220 |
<div class="description" property="yui:description"> |
|
|
221 |
The poll interval in milliseconds |
|
|
222 |
</div> |
|
|
223 |
</div> |
|
|
224 |
|
|
|
225 |
|
|
|
226 |
|
|
|
227 |
|
|
|
228 |
<hr /> |
|
|
229 |
</div> |
|
|
230 |
<div class="" rel="yui:property" resource="#property_POLL_RETRYS"> |
|
|
231 |
<h4><a name="property_POLL_RETRYS" property="yui:name">POLL_RETRYS</a> |
|
|
232 |
- <code>static final <span property="yui:type">int</span></code> |
|
|
233 |
</h4> |
|
|
234 |
<div class="detail"> |
|
|
235 |
<div class="description" property="yui:description"> |
|
|
236 |
The number of times we should look for elements that are not |
|
|
237 |
in the DOM at the time the event is requested after the document |
|
|
238 |
has been loaded. The default is 1000@amp;40 ms, so it will poll |
|
|
239 |
for 40 seconds or until all outstanding handlers are bound |
|
|
240 |
(whichever comes first). |
|
|
241 |
</div> |
|
|
242 |
</div> |
|
|
243 |
|
|
|
244 |
|
|
|
245 |
|
|
|
246 |
|
|
|
247 |
<hr /> |
|
|
248 |
</div> |
|
|
249 |
</div> |
|
|
250 |
</div> |
|
|
251 |
|
|
|
252 |
</div> |
|
|
253 |
|
|
|
254 |
<div rel="yui:methods" resource="#methods"> |
|
|
255 |
<div class="section method details"> |
|
|
256 |
<h3 id="methods">Methods</h3> |
|
|
257 |
<div class="content"> |
|
|
258 |
<div class="private deprecated" rel="yui:method" resource="#method__isValidCollection"> |
|
|
259 |
<h4> |
|
|
260 |
<a name="method__isValidCollection">_isValidCollection</a></h4> |
|
|
261 |
<div class="detail" > |
|
|
262 |
<code> |
|
|
263 |
private |
|
|
264 |
static |
|
|
265 |
|
|
|
266 |
boolean |
|
|
267 |
<strong property="yui:name">_isValidCollection</strong> |
|
|
268 |
( |
|
|
269 |
|
|
|
270 |
|
|
|
271 |
o |
|
|
272 |
|
|
|
273 |
|
|
|
274 |
) |
|
|
275 |
</code> |
|
|
276 |
|
|
|
277 |
<div class="description" property="yui:description"> |
|
|
278 |
We want to be able to use getElementsByTagName as a collection |
|
|
279 |
to attach a group of events to. Unfortunately, different |
|
|
280 |
browsers return different types of collections. This function |
|
|
281 |
tests to determine if the object is array-like. It will also |
|
|
282 |
fail if the object is an array, but is empty. |
|
|
283 |
</div> |
|
|
284 |
|
|
|
285 |
<div class="description"> |
|
|
286 |
|
|
|
287 |
<dl rel="yui:parameters"> |
|
|
288 |
<dt>Parameters:</dt> |
|
|
289 |
<dd rel="yui:parameter"> |
|
|
290 |
<code><span property="yui:name">o</span> |
|
|
291 |
<<span property="yui:type">object</span>> |
|
|
292 |
</code> |
|
|
293 |
<span property="yui:description"> the object to test</span> |
|
|
294 |
</dd> |
|
|
295 |
</dl> |
|
|
296 |
|
|
|
297 |
<dl> |
|
|
298 |
<dt>Returns: |
|
|
299 |
<code property="yui:return"> |
|
|
300 |
boolean |
|
|
301 |
</code></dt> |
|
|
302 |
<dd property="yui:returnInfo">true if the object is array-like and populated</dd> |
|
|
303 |
</dl> |
|
|
304 |
|
|
|
305 |
|
|
|
306 |
|
|
|
307 |
<div class="deprecated"> |
|
|
308 |
<strong>Deprecated</strong> was not meant to be used directly |
|
|
309 |
</div> |
|
|
310 |
|
|
|
311 |
</div> |
|
|
312 |
|
|
|
313 |
</div> |
|
|
314 |
<hr /> |
|
|
315 |
</div> |
|
|
316 |
<div class="private" rel="yui:method" resource="#method__load"> |
|
|
317 |
<h4> |
|
|
318 |
<a name="method__load">_load</a></h4> |
|
|
319 |
<div class="detail" > |
|
|
320 |
<code> |
|
|
321 |
private |
|
|
322 |
static |
|
|
323 |
|
|
|
324 |
void |
|
|
325 |
<strong property="yui:name">_load</strong> |
|
|
326 |
( |
|
|
327 |
) |
|
|
328 |
</code> |
|
|
329 |
|
|
|
330 |
<div class="description" property="yui:description"> |
|
|
331 |
hook up any deferred listeners |
|
|
332 |
</div> |
|
|
333 |
|
|
|
334 |
<div class="description"> |
|
|
335 |
|
|
|
336 |
|
|
|
337 |
|
|
|
338 |
|
|
|
339 |
|
|
|
340 |
|
|
|
341 |
</div> |
|
|
342 |
|
|
|
343 |
</div> |
|
|
344 |
<hr /> |
|
|
345 |
</div> |
|
|
346 |
<div class="private" rel="yui:method" resource="#method__poll"> |
|
|
347 |
<h4> |
|
|
348 |
<a name="method__poll">_poll</a></h4> |
|
|
349 |
<div class="detail" > |
|
|
350 |
<code> |
|
|
351 |
private |
|
|
352 |
static |
|
|
353 |
|
|
|
354 |
void |
|
|
355 |
<strong property="yui:name">_poll</strong> |
|
|
356 |
( |
|
|
357 |
) |
|
|
358 |
</code> |
|
|
359 |
|
|
|
360 |
<div class="description" property="yui:description"> |
|
|
361 |
Polling function that runs before the onload event fires, |
|
|
362 |
attempting to attach to DOM Nodes as soon as they are |
|
|
363 |
available |
|
|
364 |
</div> |
|
|
365 |
|
|
|
366 |
<div class="description"> |
|
|
367 |
|
|
|
368 |
|
|
|
369 |
|
|
|
370 |
|
|
|
371 |
|
|
|
372 |
|
|
|
373 |
</div> |
|
|
374 |
|
|
|
375 |
</div> |
|
|
376 |
<hr /> |
|
|
377 |
</div> |
|
|
378 |
<div class="private" rel="yui:method" resource="#method__unload"> |
|
|
379 |
<h4> |
|
|
380 |
<a name="method__unload">_unload</a></h4> |
|
|
381 |
<div class="detail" > |
|
|
382 |
<code> |
|
|
383 |
private |
|
|
384 |
static |
|
|
385 |
|
|
|
386 |
void |
|
|
387 |
<strong property="yui:name">_unload</strong> |
|
|
388 |
( |
|
|
389 |
) |
|
|
390 |
</code> |
|
|
391 |
|
|
|
392 |
<div class="description" property="yui:description"> |
|
|
393 |
Removes all listeners registered by pe.event. Called |
|
|
394 |
automatically during the unload event. |
|
|
395 |
</div> |
|
|
396 |
|
|
|
397 |
<div class="description"> |
|
|
398 |
|
|
|
399 |
|
|
|
400 |
|
|
|
401 |
|
|
|
402 |
|
|
|
403 |
|
|
|
404 |
</div> |
|
|
405 |
|
|
|
406 |
</div> |
|
|
407 |
<hr /> |
|
|
408 |
</div> |
|
|
409 |
<div class="" rel="yui:method" resource="#method_attach"> |
|
|
410 |
<h4> |
|
|
411 |
<a name="method_attach">attach</a></h4> |
|
|
412 |
<div class="detail" > |
|
|
413 |
<code> |
|
|
414 |
|
|
|
415 |
static |
|
|
416 |
|
|
|
417 |
EventHandle |
|
|
418 |
<strong property="yui:name">attach</strong> |
|
|
419 |
( |
|
|
420 |
|
|
|
421 |
|
|
|
422 |
type |
|
|
423 |
|
|
|
424 |
|
|
|
425 |
, |
|
|
426 |
fn |
|
|
427 |
|
|
|
428 |
|
|
|
429 |
, |
|
|
430 |
el |
|
|
431 |
|
|
|
432 |
|
|
|
433 |
, |
|
|
434 |
context |
|
|
435 |
|
|
|
436 |
|
|
|
437 |
, |
|
|
438 |
args |
|
|
439 |
|
|
|
440 |
|
|
|
441 |
) |
|
|
442 |
</code> |
|
|
443 |
|
|
|
444 |
<div class="description" property="yui:description"> |
|
|
445 |
Adds an event listener |
|
|
446 |
</div> |
|
|
447 |
|
|
|
448 |
<div class="description"> |
|
|
449 |
|
|
|
450 |
<dl rel="yui:parameters"> |
|
|
451 |
<dt>Parameters:</dt> |
|
|
452 |
<dd rel="yui:parameter"> |
|
|
453 |
<code><span property="yui:name">type</span> |
|
|
454 |
<<span property="yui:type">String</span>> |
|
|
455 |
</code> |
|
|
456 |
<span property="yui:description"> The type of event to append</span> |
|
|
457 |
</dd> |
|
|
458 |
<dd rel="yui:parameter"> |
|
|
459 |
<code><span property="yui:name">fn</span> |
|
|
460 |
<<span property="yui:type">Function</span>> |
|
|
461 |
</code> |
|
|
462 |
<span property="yui:description"> The method the event invokes</span> |
|
|
463 |
</dd> |
|
|
464 |
<dd rel="yui:parameter"> |
|
|
465 |
<code><span property="yui:name">el</span> |
|
|
466 |
<<span property="yui:type">String|HTMLElement|Array|NodeList</span>> |
|
|
467 |
</code> |
|
|
468 |
<span property="yui:description"> An id, an element |
|
|
469 |
reference, or a collection of ids and/or elements to assign the |
|
|
470 |
listener to.</span> |
|
|
471 |
</dd> |
|
|
472 |
<dd rel="yui:parameter"> |
|
|
473 |
<code><span property="yui:name">context</span> |
|
|
474 |
<<span property="yui:type">Object</span>> |
|
|
475 |
</code> |
|
|
476 |
<span property="yui:description"> optional context object</span> |
|
|
477 |
</dd> |
|
|
478 |
<dd rel="yui:parameter"> |
|
|
479 |
<code><span property="yui:name">args</span> |
|
|
480 |
<<span property="yui:type">Boolean|object</span>> |
|
|
481 |
</code> |
|
|
482 |
<span property="yui:description"> 0..n arguments to pass to the callback</span> |
|
|
483 |
</dd> |
|
|
484 |
</dl> |
|
|
485 |
|
|
|
486 |
<dl> |
|
|
487 |
<dt>Returns: |
|
|
488 |
<code property="yui:return"> |
|
|
489 |
EventHandle |
|
|
490 |
</code></dt> |
|
|
491 |
<dd property="yui:returnInfo">an object to that can be used to detach the listener</dd> |
|
|
492 |
</dl> |
|
|
493 |
|
|
|
494 |
|
|
|
495 |
|
|
|
496 |
|
|
|
497 |
</div> |
|
|
498 |
|
|
|
499 |
</div> |
|
|
500 |
<hr /> |
|
|
501 |
</div> |
|
|
502 |
<div class="" rel="yui:method" resource="#method_detach"> |
|
|
503 |
<h4> |
|
|
504 |
<a name="method_detach">detach</a></h4> |
|
|
505 |
<div class="detail" > |
|
|
506 |
<code> |
|
|
507 |
|
|
|
508 |
static |
|
|
509 |
|
|
|
510 |
boolean |
|
|
511 |
<strong property="yui:name">detach</strong> |
|
|
512 |
( |
|
|
513 |
|
|
|
514 |
|
|
|
515 |
type |
|
|
516 |
|
|
|
517 |
|
|
|
518 |
, |
|
|
519 |
fn |
|
|
520 |
|
|
|
521 |
|
|
|
522 |
, |
|
|
523 |
el |
|
|
524 |
|
|
|
525 |
|
|
|
526 |
) |
|
|
527 |
</code> |
|
|
528 |
|
|
|
529 |
<div class="description" property="yui:description"> |
|
|
530 |
Removes an event listener. Supports the signature the event was bound |
|
|
531 |
with, but the preferred way to remove listeners is using the handle |
|
|
532 |
that is returned when using Y.on |
|
|
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">type</span> |
|
|
541 |
<<span property="yui:type">String</span>> |
|
|
542 |
</code> |
|
|
543 |
<span property="yui:description"> the type of event to remove.</span> |
|
|
544 |
</dd> |
|
|
545 |
<dd rel="yui:parameter"> |
|
|
546 |
<code><span property="yui:name">fn</span> |
|
|
547 |
<<span property="yui:type">Function</span>> |
|
|
548 |
</code> |
|
|
549 |
<span property="yui:description"> the method the event invokes. If fn is |
|
|
550 |
undefined, then all event handlers for the type of event are |
|
|
551 |
removed.</span> |
|
|
552 |
</dd> |
|
|
553 |
<dd rel="yui:parameter"> |
|
|
554 |
<code><span property="yui:name">el</span> |
|
|
555 |
<<span property="yui:type">String|HTMLElement|Array|NodeList|EventHandle</span>> |
|
|
556 |
</code> |
|
|
557 |
<span property="yui:description"> An |
|
|
558 |
event handle, an id, an element reference, or a collection |
|
|
559 |
of ids and/or elements to remove the listener from.</span> |
|
|
560 |
</dd> |
|
|
561 |
</dl> |
|
|
562 |
|
|
|
563 |
<dl> |
|
|
564 |
<dt>Returns: |
|
|
565 |
<code property="yui:return"> |
|
|
566 |
boolean |
|
|
567 |
</code></dt> |
|
|
568 |
<dd property="yui:returnInfo">true if the unbind was successful, false otherwise.</dd> |
|
|
569 |
</dl> |
|
|
570 |
|
|
|
571 |
|
|
|
572 |
|
|
|
573 |
|
|
|
574 |
</div> |
|
|
575 |
|
|
|
576 |
</div> |
|
|
577 |
<hr /> |
|
|
578 |
</div> |
|
|
579 |
<div class="" rel="yui:method" resource="#method_generateId"> |
|
|
580 |
<h4> |
|
|
581 |
<a name="method_generateId">generateId</a></h4> |
|
|
582 |
<div class="detail" > |
|
|
583 |
<code> |
|
|
584 |
|
|
|
585 |
static |
|
|
586 |
|
|
|
587 |
string |
|
|
588 |
<strong property="yui:name">generateId</strong> |
|
|
589 |
( |
|
|
590 |
|
|
|
591 |
|
|
|
592 |
el |
|
|
593 |
|
|
|
594 |
|
|
|
595 |
) |
|
|
596 |
</code> |
|
|
597 |
|
|
|
598 |
<div class="description" property="yui:description"> |
|
|
599 |
Generates an unique ID for the element if it does not already |
|
|
600 |
have one. |
|
|
601 |
</div> |
|
|
602 |
|
|
|
603 |
<div class="description"> |
|
|
604 |
|
|
|
605 |
<dl rel="yui:parameters"> |
|
|
606 |
<dt>Parameters:</dt> |
|
|
607 |
<dd rel="yui:parameter"> |
|
|
608 |
<code><span property="yui:name">el</span> |
|
|
609 |
<<span property="yui:type">object</span>> |
|
|
610 |
</code> |
|
|
611 |
<span property="yui:description"> the element to create the id for</span> |
|
|
612 |
</dd> |
|
|
613 |
</dl> |
|
|
614 |
|
|
|
615 |
<dl> |
|
|
616 |
<dt>Returns: |
|
|
617 |
<code property="yui:return"> |
|
|
618 |
string |
|
|
619 |
</code></dt> |
|
|
620 |
<dd property="yui:returnInfo">the resulting id of the element</dd> |
|
|
621 |
</dl> |
|
|
622 |
|
|
|
623 |
|
|
|
624 |
|
|
|
625 |
|
|
|
626 |
</div> |
|
|
627 |
|
|
|
628 |
</div> |
|
|
629 |
<hr /> |
|
|
630 |
</div> |
|
|
631 |
<div class="" rel="yui:method" resource="#method_getEvent"> |
|
|
632 |
<h4> |
|
|
633 |
<a name="method_getEvent">getEvent</a></h4> |
|
|
634 |
<div class="detail" > |
|
|
635 |
<code> |
|
|
636 |
|
|
|
637 |
static |
|
|
638 |
|
|
|
639 |
Event |
|
|
640 |
<strong property="yui:name">getEvent</strong> |
|
|
641 |
( |
|
|
642 |
|
|
|
643 |
|
|
|
644 |
e |
|
|
645 |
|
|
|
646 |
|
|
|
647 |
, |
|
|
648 |
el |
|
|
649 |
|
|
|
650 |
|
|
|
651 |
) |
|
|
652 |
</code> |
|
|
653 |
|
|
|
654 |
<div class="description" property="yui:description"> |
|
|
655 |
Finds the event in the window object, the caller's arguments, or |
|
|
656 |
in the arguments of another method in the callstack. This is |
|
|
657 |
executed automatically for events registered through the event |
|
|
658 |
manager, so the implementer should not normally need to execute |
|
|
659 |
this function at all. |
|
|
660 |
</div> |
|
|
661 |
|
|
|
662 |
<div class="description"> |
|
|
663 |
|
|
|
664 |
<dl rel="yui:parameters"> |
|
|
665 |
<dt>Parameters:</dt> |
|
|
666 |
<dd rel="yui:parameter"> |
|
|
667 |
<code><span property="yui:name">e</span> |
|
|
668 |
<<span property="yui:type">Event</span>> |
|
|
669 |
</code> |
|
|
670 |
<span property="yui:description"> the event parameter from the handler</span> |
|
|
671 |
</dd> |
|
|
672 |
<dd rel="yui:parameter"> |
|
|
673 |
<code><span property="yui:name">el</span> |
|
|
674 |
<<span property="yui:type">HTMLElement</span>> |
|
|
675 |
</code> |
|
|
676 |
<span property="yui:description"> the element the listener was attached to</span> |
|
|
677 |
</dd> |
|
|
678 |
</dl> |
|
|
679 |
|
|
|
680 |
<dl> |
|
|
681 |
<dt>Returns: |
|
|
682 |
<code property="yui:return"> |
|
|
683 |
Event |
|
|
684 |
</code></dt> |
|
|
685 |
<dd property="yui:returnInfo">the event</dd> |
|
|
686 |
</dl> |
|
|
687 |
|
|
|
688 |
|
|
|
689 |
|
|
|
690 |
|
|
|
691 |
</div> |
|
|
692 |
|
|
|
693 |
</div> |
|
|
694 |
<hr /> |
|
|
695 |
</div> |
|
|
696 |
<div class="" rel="yui:method" resource="#method_getListeners"> |
|
|
697 |
<h4> |
|
|
698 |
<a name="method_getListeners">getListeners</a></h4> |
|
|
699 |
<div class="detail" > |
|
|
700 |
<code> |
|
|
701 |
|
|
|
702 |
static |
|
|
703 |
|
|
|
704 |
Y.Custom.Event |
|
|
705 |
<strong property="yui:name">getListeners</strong> |
|
|
706 |
( |
|
|
707 |
|
|
|
708 |
|
|
|
709 |
el |
|
|
710 |
|
|
|
711 |
|
|
|
712 |
, |
|
|
713 |
type |
|
|
714 |
|
|
|
715 |
|
|
|
716 |
) |
|
|
717 |
</code> |
|
|
718 |
|
|
|
719 |
<div class="description" property="yui:description"> |
|
|
720 |
Returns all listeners attached to the given element via addListener. |
|
|
721 |
Optionally, you can specify a specific type of event to return. |
|
|
722 |
</div> |
|
|
723 |
|
|
|
724 |
<div class="description"> |
|
|
725 |
|
|
|
726 |
<dl rel="yui:parameters"> |
|
|
727 |
<dt>Parameters:</dt> |
|
|
728 |
<dd rel="yui:parameter"> |
|
|
729 |
<code><span property="yui:name">el</span> |
|
|
730 |
<<span property="yui:type">HTMLElement|string</span>> |
|
|
731 |
</code> |
|
|
732 |
<span property="yui:description"> the element or element id to inspect</span> |
|
|
733 |
</dd> |
|
|
734 |
<dd rel="yui:parameter"> |
|
|
735 |
<code><span property="yui:name">type</span> |
|
|
736 |
<<span property="yui:type">string</span>> |
|
|
737 |
</code> |
|
|
738 |
<span property="yui:description"> optional type of listener to return. If |
|
|
739 |
left out, all listeners will be returned</span> |
|
|
740 |
</dd> |
|
|
741 |
</dl> |
|
|
742 |
|
|
|
743 |
<dl> |
|
|
744 |
<dt>Returns: |
|
|
745 |
<code property="yui:return"> |
|
|
746 |
Y.Custom.Event |
|
|
747 |
</code></dt> |
|
|
748 |
<dd property="yui:returnInfo">the custom event wrapper for the DOM event(s)</dd> |
|
|
749 |
</dl> |
|
|
750 |
|
|
|
751 |
|
|
|
752 |
|
|
|
753 |
|
|
|
754 |
</div> |
|
|
755 |
|
|
|
756 |
</div> |
|
|
757 |
<hr /> |
|
|
758 |
</div> |
|
|
759 |
<div class="private" rel="yui:method" resource="#method_nativeAdd"> |
|
|
760 |
<h4> |
|
|
761 |
<a name="method_nativeAdd">nativeAdd</a></h4> |
|
|
762 |
<div class="detail" > |
|
|
763 |
<code> |
|
|
764 |
private |
|
|
765 |
static |
|
|
766 |
|
|
|
767 |
void |
|
|
768 |
<strong property="yui:name">nativeAdd</strong> |
|
|
769 |
( |
|
|
770 |
|
|
|
771 |
|
|
|
772 |
el |
|
|
773 |
|
|
|
774 |
|
|
|
775 |
, |
|
|
776 |
type |
|
|
777 |
|
|
|
778 |
|
|
|
779 |
, |
|
|
780 |
fn |
|
|
781 |
|
|
|
782 |
|
|
|
783 |
, |
|
|
784 |
capture |
|
|
785 |
|
|
|
786 |
|
|
|
787 |
) |
|
|
788 |
</code> |
|
|
789 |
|
|
|
790 |
<div class="description" property="yui:description"> |
|
|
791 |
Adds a DOM event directly without the caching, cleanup, context adj, etc |
|
|
792 |
</div> |
|
|
793 |
|
|
|
794 |
<div class="description"> |
|
|
795 |
|
|
|
796 |
<dl rel="yui:parameters"> |
|
|
797 |
<dt>Parameters:</dt> |
|
|
798 |
<dd rel="yui:parameter"> |
|
|
799 |
<code><span property="yui:name">el</span> |
|
|
800 |
<<span property="yui:type">HTMLElement</span>> |
|
|
801 |
</code> |
|
|
802 |
<span property="yui:description"> the element to bind the handler to</span> |
|
|
803 |
</dd> |
|
|
804 |
<dd rel="yui:parameter"> |
|
|
805 |
<code><span property="yui:name">type</span> |
|
|
806 |
<<span property="yui:type">string</span>> |
|
|
807 |
</code> |
|
|
808 |
<span property="yui:description"> the type of event handler</span> |
|
|
809 |
</dd> |
|
|
810 |
<dd rel="yui:parameter"> |
|
|
811 |
<code><span property="yui:name">fn</span> |
|
|
812 |
<<span property="yui:type">function</span>> |
|
|
813 |
</code> |
|
|
814 |
<span property="yui:description"> the callback to invoke</span> |
|
|
815 |
</dd> |
|
|
816 |
<dd rel="yui:parameter"> |
|
|
817 |
<code><span property="yui:name">capture</span> |
|
|
818 |
<<span property="yui:type">boolen</span>> |
|
|
819 |
</code> |
|
|
820 |
<span property="yui:description"> capture or bubble phase</span> |
|
|
821 |
</dd> |
|
|
822 |
</dl> |
|
|
823 |
|
|
|
824 |
|
|
|
825 |
|
|
|
826 |
|
|
|
827 |
|
|
|
828 |
</div> |
|
|
829 |
|
|
|
830 |
</div> |
|
|
831 |
<hr /> |
|
|
832 |
</div> |
|
|
833 |
<div class="private" rel="yui:method" resource="#method_nativeRemove"> |
|
|
834 |
<h4> |
|
|
835 |
<a name="method_nativeRemove">nativeRemove</a></h4> |
|
|
836 |
<div class="detail" > |
|
|
837 |
<code> |
|
|
838 |
private |
|
|
839 |
static |
|
|
840 |
|
|
|
841 |
void |
|
|
842 |
<strong property="yui:name">nativeRemove</strong> |
|
|
843 |
( |
|
|
844 |
|
|
|
845 |
|
|
|
846 |
el |
|
|
847 |
|
|
|
848 |
|
|
|
849 |
, |
|
|
850 |
type |
|
|
851 |
|
|
|
852 |
|
|
|
853 |
, |
|
|
854 |
fn |
|
|
855 |
|
|
|
856 |
|
|
|
857 |
, |
|
|
858 |
capture |
|
|
859 |
|
|
|
860 |
|
|
|
861 |
) |
|
|
862 |
</code> |
|
|
863 |
|
|
|
864 |
<div class="description" property="yui:description"> |
|
|
865 |
Basic remove listener |
|
|
866 |
</div> |
|
|
867 |
|
|
|
868 |
<div class="description"> |
|
|
869 |
|
|
|
870 |
<dl rel="yui:parameters"> |
|
|
871 |
<dt>Parameters:</dt> |
|
|
872 |
<dd rel="yui:parameter"> |
|
|
873 |
<code><span property="yui:name">el</span> |
|
|
874 |
<<span property="yui:type">HTMLElement</span>> |
|
|
875 |
</code> |
|
|
876 |
<span property="yui:description"> the element to bind the handler to</span> |
|
|
877 |
</dd> |
|
|
878 |
<dd rel="yui:parameter"> |
|
|
879 |
<code><span property="yui:name">type</span> |
|
|
880 |
<<span property="yui:type">string</span>> |
|
|
881 |
</code> |
|
|
882 |
<span property="yui:description"> the type of event handler</span> |
|
|
883 |
</dd> |
|
|
884 |
<dd rel="yui:parameter"> |
|
|
885 |
<code><span property="yui:name">fn</span> |
|
|
886 |
<<span property="yui:type">function</span>> |
|
|
887 |
</code> |
|
|
888 |
<span property="yui:description"> the callback to invoke</span> |
|
|
889 |
</dd> |
|
|
890 |
<dd rel="yui:parameter"> |
|
|
891 |
<code><span property="yui:name">capture</span> |
|
|
892 |
<<span property="yui:type">boolen</span>> |
|
|
893 |
</code> |
|
|
894 |
<span property="yui:description"> capture or bubble phase</span> |
|
|
895 |
</dd> |
|
|
896 |
</dl> |
|
|
897 |
|
|
|
898 |
|
|
|
899 |
|
|
|
900 |
|
|
|
901 |
|
|
|
902 |
</div> |
|
|
903 |
|
|
|
904 |
</div> |
|
|
905 |
<hr /> |
|
|
906 |
</div> |
|
|
907 |
<div class=" deprecated" rel="yui:method" resource="#method_onAvailable"> |
|
|
908 |
<h4> |
|
|
909 |
<a name="method_onAvailable">onAvailable</a></h4> |
|
|
910 |
<div class="detail" > |
|
|
911 |
<code> |
|
|
912 |
|
|
|
913 |
static |
|
|
914 |
|
|
|
915 |
void |
|
|
916 |
<strong property="yui:name">onAvailable</strong> |
|
|
917 |
( |
|
|
918 |
|
|
|
919 |
|
|
|
920 |
id |
|
|
921 |
|
|
|
922 |
|
|
|
923 |
, |
|
|
924 |
fn |
|
|
925 |
|
|
|
926 |
|
|
|
927 |
, |
|
|
928 |
p_obj |
|
|
929 |
|
|
|
930 |
|
|
|
931 |
, |
|
|
932 |
p_override |
|
|
933 |
|
|
|
934 |
|
|
|
935 |
, |
|
|
936 |
checkContent |
|
|
937 |
|
|
|
938 |
|
|
|
939 |
) |
|
|
940 |
</code> |
|
|
941 |
|
|
|
942 |
<div class="description" property="yui:description"> |
|
|
943 |
Executes the supplied callback when the item with the supplied |
|
|
944 |
id is found. This is meant to be used to execute behavior as |
|
|
945 |
soon as possible as the page loads. If you use this after the |
|
|
946 |
initial page load it will poll for a fixed time for the element. |
|
|
947 |
The number of times it will poll and the frequency are |
|
|
948 |
configurable. By default it will poll for 10 seconds. |
|
|
949 |
<p>The callback is executed with a single parameter: |
|
|
950 |
the custom object parameter, if provided.</p> |
|
|
951 |
</div> |
|
|
952 |
|
|
|
953 |
<div class="description"> |
|
|
954 |
|
|
|
955 |
<dl rel="yui:parameters"> |
|
|
956 |
<dt>Parameters:</dt> |
|
|
957 |
<dd rel="yui:parameter"> |
|
|
958 |
<code><span property="yui:name">id</span> |
|
|
959 |
<<span property="yui:type">string||string[]</span>> |
|
|
960 |
</code> |
|
|
961 |
<span property="yui:description"> the id of the element, or an array |
|
|
962 |
of ids to look for.</span> |
|
|
963 |
</dd> |
|
|
964 |
<dd rel="yui:parameter"> |
|
|
965 |
<code><span property="yui:name">fn</span> |
|
|
966 |
<<span property="yui:type">function</span>> |
|
|
967 |
</code> |
|
|
968 |
<span property="yui:description"> what to execute when the element is found.</span> |
|
|
969 |
</dd> |
|
|
970 |
<dd rel="yui:parameter"> |
|
|
971 |
<code><span property="yui:name">p_obj</span> |
|
|
972 |
<<span property="yui:type">object</span>> |
|
|
973 |
</code> |
|
|
974 |
<span property="yui:description"> an optional object to be passed back as |
|
|
975 |
a parameter to fn.</span> |
|
|
976 |
</dd> |
|
|
977 |
<dd rel="yui:parameter"> |
|
|
978 |
<code><span property="yui:name">p_override</span> |
|
|
979 |
<<span property="yui:type">boolean|object</span>> |
|
|
980 |
</code> |
|
|
981 |
<span property="yui:description"> If set to true, fn will execute |
|
|
982 |
in the context of p_obj, if set to an object it |
|
|
983 |
will execute in the context of that object</span> |
|
|
984 |
</dd> |
|
|
985 |
<dd rel="yui:parameter"> |
|
|
986 |
<code><span property="yui:name">checkContent</span> |
|
|
987 |
<<span property="yui:type">boolean</span>> |
|
|
988 |
</code> |
|
|
989 |
<span property="yui:description"> check child node readiness (onContentReady)</span> |
|
|
990 |
</dd> |
|
|
991 |
</dl> |
|
|
992 |
|
|
|
993 |
|
|
|
994 |
|
|
|
995 |
|
|
|
996 |
<div class="deprecated"> |
|
|
997 |
<strong>Deprecated</strong> Use Y.on("available") |
|
|
998 |
</div> |
|
|
999 |
|
|
|
1000 |
</div> |
|
|
1001 |
|
|
|
1002 |
</div> |
|
|
1003 |
<hr /> |
|
|
1004 |
</div> |
|
|
1005 |
<div class=" deprecated" rel="yui:method" resource="#method_onContentReady"> |
|
|
1006 |
<h4> |
|
|
1007 |
<a name="method_onContentReady">onContentReady</a></h4> |
|
|
1008 |
<div class="detail" > |
|
|
1009 |
<code> |
|
|
1010 |
|
|
|
1011 |
static |
|
|
1012 |
|
|
|
1013 |
void |
|
|
1014 |
<strong property="yui:name">onContentReady</strong> |
|
|
1015 |
( |
|
|
1016 |
|
|
|
1017 |
|
|
|
1018 |
id |
|
|
1019 |
|
|
|
1020 |
|
|
|
1021 |
, |
|
|
1022 |
fn |
|
|
1023 |
|
|
|
1024 |
|
|
|
1025 |
, |
|
|
1026 |
p_obj |
|
|
1027 |
|
|
|
1028 |
|
|
|
1029 |
, |
|
|
1030 |
p_override |
|
|
1031 |
|
|
|
1032 |
|
|
|
1033 |
) |
|
|
1034 |
</code> |
|
|
1035 |
|
|
|
1036 |
<div class="description" property="yui:description"> |
|
|
1037 |
Works the same way as onAvailable, but additionally checks the |
|
|
1038 |
state of sibling elements to determine if the content of the |
|
|
1039 |
available element is safe to modify. |
|
|
1040 |
<p>The callback is executed with a single parameter: |
|
|
1041 |
the custom object parameter, if provided.</p> |
|
|
1042 |
</div> |
|
|
1043 |
|
|
|
1044 |
<div class="description"> |
|
|
1045 |
|
|
|
1046 |
<dl rel="yui:parameters"> |
|
|
1047 |
<dt>Parameters:</dt> |
|
|
1048 |
<dd rel="yui:parameter"> |
|
|
1049 |
<code><span property="yui:name">id</span> |
|
|
1050 |
<<span property="yui:type">string</span>> |
|
|
1051 |
</code> |
|
|
1052 |
<span property="yui:description"> the id of the element to look for.</span> |
|
|
1053 |
</dd> |
|
|
1054 |
<dd rel="yui:parameter"> |
|
|
1055 |
<code><span property="yui:name">fn</span> |
|
|
1056 |
<<span property="yui:type">function</span>> |
|
|
1057 |
</code> |
|
|
1058 |
<span property="yui:description"> what to execute when the element is ready.</span> |
|
|
1059 |
</dd> |
|
|
1060 |
<dd rel="yui:parameter"> |
|
|
1061 |
<code><span property="yui:name">p_obj</span> |
|
|
1062 |
<<span property="yui:type">object</span>> |
|
|
1063 |
</code> |
|
|
1064 |
<span property="yui:description"> an optional object to be passed back as |
|
|
1065 |
a parameter to fn.</span> |
|
|
1066 |
</dd> |
|
|
1067 |
<dd rel="yui:parameter"> |
|
|
1068 |
<code><span property="yui:name">p_override</span> |
|
|
1069 |
<<span property="yui:type">boolean|object</span>> |
|
|
1070 |
</code> |
|
|
1071 |
<span property="yui:description"> If set to true, fn will execute |
|
|
1072 |
in the context of p_obj. If an object, fn will |
|
|
1073 |
exectute in the context of that object</span> |
|
|
1074 |
</dd> |
|
|
1075 |
</dl> |
|
|
1076 |
|
|
|
1077 |
|
|
|
1078 |
|
|
|
1079 |
|
|
|
1080 |
<div class="deprecated"> |
|
|
1081 |
<strong>Deprecated</strong> Use Y.on("contentready") |
|
|
1082 |
</div> |
|
|
1083 |
|
|
|
1084 |
</div> |
|
|
1085 |
|
|
|
1086 |
</div> |
|
|
1087 |
<hr /> |
|
|
1088 |
</div> |
|
|
1089 |
<div class="" rel="yui:method" resource="#method_purgeElement"> |
|
|
1090 |
<h4> |
|
|
1091 |
<a name="method_purgeElement">purgeElement</a></h4> |
|
|
1092 |
<div class="detail" > |
|
|
1093 |
<code> |
|
|
1094 |
|
|
|
1095 |
static |
|
|
1096 |
|
|
|
1097 |
void |
|
|
1098 |
<strong property="yui:name">purgeElement</strong> |
|
|
1099 |
( |
|
|
1100 |
|
|
|
1101 |
|
|
|
1102 |
el |
|
|
1103 |
|
|
|
1104 |
|
|
|
1105 |
, |
|
|
1106 |
recurse |
|
|
1107 |
|
|
|
1108 |
|
|
|
1109 |
, |
|
|
1110 |
type |
|
|
1111 |
|
|
|
1112 |
|
|
|
1113 |
) |
|
|
1114 |
</code> |
|
|
1115 |
|
|
|
1116 |
<div class="description" property="yui:description"> |
|
|
1117 |
Removes all listeners attached to the given element via addListener. |
|
|
1118 |
Optionally, the node's children can also be purged. |
|
|
1119 |
Optionally, you can specify a specific type of event to remove. |
|
|
1120 |
</div> |
|
|
1121 |
|
|
|
1122 |
<div class="description"> |
|
|
1123 |
|
|
|
1124 |
<dl rel="yui:parameters"> |
|
|
1125 |
<dt>Parameters:</dt> |
|
|
1126 |
<dd rel="yui:parameter"> |
|
|
1127 |
<code><span property="yui:name">el</span> |
|
|
1128 |
<<span property="yui:type">HTMLElement</span>> |
|
|
1129 |
</code> |
|
|
1130 |
<span property="yui:description"> the element to purge</span> |
|
|
1131 |
</dd> |
|
|
1132 |
<dd rel="yui:parameter"> |
|
|
1133 |
<code><span property="yui:name">recurse</span> |
|
|
1134 |
<<span property="yui:type">boolean</span>> |
|
|
1135 |
</code> |
|
|
1136 |
<span property="yui:description"> recursively purge this element's children |
|
|
1137 |
as well. Use with caution.</span> |
|
|
1138 |
</dd> |
|
|
1139 |
<dd rel="yui:parameter"> |
|
|
1140 |
<code><span property="yui:name">type</span> |
|
|
1141 |
<<span property="yui:type">string</span>> |
|
|
1142 |
</code> |
|
|
1143 |
<span property="yui:description"> optional type of listener to purge. If |
|
|
1144 |
left out, all listeners will be removed</span> |
|
|
1145 |
</dd> |
|
|
1146 |
</dl> |
|
|
1147 |
|
|
|
1148 |
|
|
|
1149 |
|
|
|
1150 |
|
|
|
1151 |
|
|
|
1152 |
</div> |
|
|
1153 |
|
|
|
1154 |
</div> |
|
|
1155 |
<hr /> |
|
|
1156 |
</div> |
|
|
1157 |
<div class="private" rel="yui:method" resource="#method_startInterval"> |
|
|
1158 |
<h4> |
|
|
1159 |
<a name="method_startInterval">startInterval</a></h4> |
|
|
1160 |
<div class="detail" > |
|
|
1161 |
<code> |
|
|
1162 |
private |
|
|
1163 |
static |
|
|
1164 |
|
|
|
1165 |
void |
|
|
1166 |
<strong property="yui:name">startInterval</strong> |
|
|
1167 |
( |
|
|
1168 |
) |
|
|
1169 |
</code> |
|
|
1170 |
|
|
|
1171 |
<div class="description" property="yui:description"> |
|
|
1172 |
|
|
|
1173 |
</div> |
|
|
1174 |
|
|
|
1175 |
<div class="description"> |
|
|
1176 |
|
|
|
1177 |
|
|
|
1178 |
|
|
|
1179 |
|
|
|
1180 |
|
|
|
1181 |
|
|
|
1182 |
</div> |
|
|
1183 |
|
|
|
1184 |
</div> |
|
|
1185 |
<hr /> |
|
|
1186 |
</div> |
|
|
1187 |
</div> |
|
|
1188 |
</div> |
|
|
1189 |
|
|
|
1190 |
</div> |
|
|
1191 |
|
|
|
1192 |
<div rel="yui:events" resource="#events"> |
|
|
1193 |
|
|
|
1194 |
|
|
|
1195 |
</div> |
|
|
1196 |
|
|
|
1197 |
<div rel="yui:attributes" resource="#configattributes"> |
|
|
1198 |
|
|
|
1199 |
</div> |
|
|
1200 |
|
|
|
1201 |
</div> |
|
|
1202 |
</div> |
|
|
1203 |
<div class="yui-b"> |
|
|
1204 |
<div class="nav"> |
|
|
1205 |
|
|
|
1206 |
<div id="moduleList" class="module"> |
|
|
1207 |
<h4>Modules</h4> |
|
|
1208 |
<ul class="content"> |
|
|
1209 |
<li class=""><a href="module_anim.html" title="anim">anim</a></li> |
|
|
1210 |
<li class=""><a href="module_async-queue.html" title="async-queue">async-queue</a></li> |
|
|
1211 |
<li class=""><a href="module_attribute.html" title="attribute">attribute</a></li> |
|
|
1212 |
<li class=""><a href="module_base.html" title="base">base</a></li> |
|
|
1213 |
<li class=""><a href="module_cache.html" title="cache">cache</a></li> |
|
|
1214 |
<li class=""><a href="module_classnamemanager.html" title="classnamemanager">classnamemanager</a></li> |
|
|
1215 |
<li class=""><a href="module_collection.html" title="collection">collection</a></li> |
|
|
1216 |
<li class=""><a href="module_console.html" title="console">console</a></li> |
|
|
1217 |
<li class=""><a href="module_console-filters.html" title="console-filters">console-filters</a></li> |
|
|
1218 |
<li class=""><a href="module_cookie.html" title="cookie">cookie</a></li> |
|
|
1219 |
<li class=""><a href="module_dataschema.html" title="dataschema">dataschema</a></li> |
|
|
1220 |
<li class=""><a href="module_datasource.html" title="datasource">datasource</a></li> |
|
|
1221 |
<li class=""><a href="module_datatype.html" title="datatype">datatype</a></li> |
|
|
1222 |
<li class=""><a href="module_dd.html" title="dd">dd</a></li> |
|
|
1223 |
<li class=""><a href="module_dom.html" title="dom">dom</a></li> |
|
|
1224 |
<li class=""><a href="module_dump.html" title="dump">dump</a></li> |
|
|
1225 |
<li class="selected"><a href="module_event.html" title="event">event</a></li> |
|
|
1226 |
<li class=""><a href="module_event-custom.html" title="event-custom">event-custom</a></li> |
|
|
1227 |
<li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li> |
|
|
1228 |
<li class=""><a href="module_history.html" title="history">history</a></li> |
|
|
1229 |
<li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li> |
|
|
1230 |
<li class=""><a href="module_io.html" title="io">io</a></li> |
|
|
1231 |
<li class=""><a href="module_json.html" title="json">json</a></li> |
|
|
1232 |
<li class=""><a href="module_node.html" title="node">node</a></li> |
|
|
1233 |
<li class=""><a href="module_node-focusmanager.html" title="node-focusmanager">node-focusmanager</a></li> |
|
|
1234 |
<li class=""><a href="module_node-menunav.html" title="node-menunav">node-menunav</a></li> |
|
|
1235 |
<li class=""><a href="module_oop.html" title="oop">oop</a></li> |
|
|
1236 |
<li class=""><a href="module_overlay.html" title="overlay">overlay</a></li> |
|
|
1237 |
<li class=""><a href="module_plugin.html" title="plugin">plugin</a></li> |
|
|
1238 |
<li class=""><a href="module_profiler.html" title="profiler">profiler</a></li> |
|
|
1239 |
<li class=""><a href="module_queue-promote.html" title="queue-promote">queue-promote</a></li> |
|
|
1240 |
<li class=""><a href="module_slider.html" title="slider">slider</a></li> |
|
|
1241 |
<li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li> |
|
|
1242 |
<li class=""><a href="module_substitute.html" title="substitute">substitute</a></li> |
|
|
1243 |
<li class=""><a href="module_test.html" title="test">test</a></li> |
|
|
1244 |
<li class=""><a href="module_widget.html" title="widget">widget</a></li> |
|
|
1245 |
<li class=""><a href="module_widget-position.html" title="widget-position">widget-position</a></li> |
|
|
1246 |
<li class=""><a href="module_widget-position-ext.html" title="widget-position-ext">widget-position-ext</a></li> |
|
|
1247 |
<li class=""><a href="module_widget-stack.html" title="widget-stack">widget-stack</a></li> |
|
|
1248 |
<li class=""><a href="module_widget-stdmod.html" title="widget-stdmod">widget-stdmod</a></li> |
|
|
1249 |
<li class=""><a href="module_yui.html" title="yui">yui</a></li> |
|
|
1250 |
</ul> |
|
|
1251 |
</div> |
|
|
1252 |
|
|
|
1253 |
<div id="classList" class="module"> |
|
|
1254 |
<h4>Classes</h4> |
|
|
1255 |
<ul class="content"> |
|
|
1256 |
<li class=""><a href="DOMEventFacade.html" title="DOMEventFacade">DOMEventFacade</a></li> |
|
|
1257 |
<li class="selected"><a href="Event.html" title="Event">Event</a></li> |
|
|
1258 |
</ul> |
|
|
1259 |
</div> |
|
|
1260 |
|
|
|
1261 |
<div id="fileList" class="module"> |
|
|
1262 |
<h4>Files</h4> |
|
|
1263 |
<ul class="content"> |
|
|
1264 |
<li class=""><a href="available.js.html" title="available.js">available.js</a></li> |
|
|
1265 |
<li class=""><a href="delegate.js.html" title="delegate.js">delegate.js</a></li> |
|
|
1266 |
<li class=""><a href="event-dom.js.html" title="event-dom.js">event-dom.js</a></li> |
|
|
1267 |
<li class=""><a href="event-facade-dom.js.html" title="event-facade-dom.js">event-facade-dom.js</a></li> |
|
|
1268 |
<li class=""><a href="event-ready-base.js.html" title="event-ready-base.js">event-ready-base.js</a></li> |
|
|
1269 |
<li class=""><a href="event-ready.js.html" title="event-ready.js">event-ready.js</a></li> |
|
|
1270 |
<li class=""><a href="focusblur.js.html" title="focusblur.js">focusblur.js</a></li> |
|
|
1271 |
<li class=""><a href="key.js.html" title="key.js">key.js</a></li> |
|
|
1272 |
<li class=""><a href="mouseentermouseleave.js.html" title="mouseentermouseleave.js">mouseentermouseleave.js</a></li> |
|
|
1273 |
<li class=""><a href="mousewheel.js.html" title="mousewheel.js">mousewheel.js</a></li> |
|
|
1274 |
<li class=""><a href="resize-window.js.html" title="resize-window.js">resize-window.js</a></li> |
|
|
1275 |
</ul> |
|
|
1276 |
</div> |
|
|
1277 |
|
|
|
1278 |
<div id="propertyList" class="module"> |
|
|
1279 |
<h4>Properties</h4> |
|
|
1280 |
<ul class="content"> |
|
|
1281 |
<li class="private"><a href="#property__avail" title="_avail">_avail</a></li> |
|
|
1282 |
<li class="private"><a href="#property__dri" title="_dri">_dri</a></li> |
|
|
1283 |
<li class="private"><a href="#property__el_events" title="_el_events">_el_events</a></li> |
|
|
1284 |
<li class="private"><a href="#property__interval" title="_interval">_interval</a></li> |
|
|
1285 |
<li class="private"><a href="#property__loadComplete" title="_loadComplete">_loadComplete</a></li> |
|
|
1286 |
<li class="private"><a href="#property__retryCount" title="_retryCount">_retryCount</a></li> |
|
|
1287 |
<li class="private"><a href="#property__wrappers" title="_wrappers">_wrappers</a></li> |
|
|
1288 |
<li class=""><a href="#property_DOMReady" title="DOMReady">DOMReady</a></li> |
|
|
1289 |
<li class=""><a href="#property_lastError" title="lastError">lastError</a></li> |
|
|
1290 |
<li class=""><a href="#property_POLL_INTERVAL" title="POLL_INTERVAL">POLL_INTERVAL</a></li> |
|
|
1291 |
<li class=""><a href="#property_POLL_RETRYS" title="POLL_RETRYS">POLL_RETRYS</a></li> |
|
|
1292 |
</ul> |
|
|
1293 |
</div> |
|
|
1294 |
|
|
|
1295 |
<div id="methodsList" class="module"> |
|
|
1296 |
<h4>Methods</h4> |
|
|
1297 |
<ul class="content"> |
|
|
1298 |
<li class="private deprecated"><a href="#method__isValidCollection" title="_isValidCollection">_isValidCollection</a></li> |
|
|
1299 |
<li class="private"><a href="#method__load" title="_load">_load</a></li> |
|
|
1300 |
<li class="private"><a href="#method__poll" title="_poll">_poll</a></li> |
|
|
1301 |
<li class="private"><a href="#method__unload" title="_unload">_unload</a></li> |
|
|
1302 |
<li class=""><a href="#method_attach" title="attach">attach</a></li> |
|
|
1303 |
<li class=""><a href="#method_detach" title="detach">detach</a></li> |
|
|
1304 |
<li class=""><a href="#method_generateId" title="generateId">generateId</a></li> |
|
|
1305 |
<li class=""><a href="#method_getEvent" title="getEvent">getEvent</a></li> |
|
|
1306 |
<li class=""><a href="#method_getListeners" title="getListeners">getListeners</a></li> |
|
|
1307 |
<li class="private"><a href="#method_nativeAdd" title="nativeAdd">nativeAdd</a></li> |
|
|
1308 |
<li class="private"><a href="#method_nativeRemove" title="nativeRemove">nativeRemove</a></li> |
|
|
1309 |
<li class=" deprecated"><a href="#method_onAvailable" title="onAvailable">onAvailable</a></li> |
|
|
1310 |
<li class=" deprecated"><a href="#method_onContentReady" title="onContentReady">onContentReady</a></li> |
|
|
1311 |
<li class=""><a href="#method_purgeElement" title="purgeElement">purgeElement</a></li> |
|
|
1312 |
<li class="private"><a href="#method_startInterval" title="startInterval">startInterval</a></li> |
|
|
1313 |
</ul> |
|
|
1314 |
</div> |
|
|
1315 |
|
|
|
1316 |
|
|
|
1317 |
|
|
|
1318 |
</div> |
|
|
1319 |
</div> |
|
|
1320 |
</div> |
|
|
1321 |
<div id="ft"> |
|
|
1322 |
<hr /> |
|
|
1323 |
Copyright © 2009 Yahoo! Inc. All rights reserved. |
|
|
1324 |
</div> |
|
|
1325 |
</div> |
|
|
1326 |
<script type="text/javascript"> |
|
|
1327 |
ALL_YUI_PROPS = [{"access": "", "host": "Event", "name": "attach", "url": "Event.html#method_attach", "type": "method"}, {"access": "private", "host": "Event", "name": "_avail", "url": "Event.html#property__avail", "type": "property"}, {"access": "", "host": "Event", "name": "detach", "url": "Event.html#method_detach", "type": "method"}, {"access": "", "host": "Event", "name": "DOMReady", "url": "Event.html#property_DOMReady", "type": "property"}, {"access": "private", "host": "Event", "name": "_dri", "url": "Event.html#property__dri", "type": "property"}, {"access": "private", "host": "Event", "name": "_el_events", "url": "Event.html#property__el_events", "type": "property"}, {"access": "", "host": "Event", "name": "generateId", "url": "Event.html#method_generateId", "type": "method"}, {"access": "", "host": "Event", "name": "getEvent", "url": "Event.html#method_getEvent", "type": "method"}, {"access": "", "host": "Event", "name": "getListeners", "url": "Event.html#method_getListeners", "type": "method"}, {"access": "private", "host": "Event", "name": "_interval", "url": "Event.html#property__interval", "type": "property"}, {"access": "private", "host": "Event", "name": "_isValidCollection", "url": "Event.html#method__isValidCollection", "type": "method"}, {"access": "", "host": "Event", "name": "lastError", "url": "Event.html#property_lastError", "type": "property"}, {"access": "private", "host": "Event", "name": "_load", "url": "Event.html#method__load", "type": "method"}, {"access": "private", "host": "Event", "name": "_loadComplete", "url": "Event.html#property__loadComplete", "type": "property"}, {"access": "private", "host": "Event", "name": "nativeAdd", "url": "Event.html#method_nativeAdd", "type": "method"}, {"access": "private", "host": "Event", "name": "nativeRemove", "url": "Event.html#method_nativeRemove", "type": "method"}, {"access": "", "host": "Event", "name": "onAvailable", "url": "Event.html#method_onAvailable", "type": "method"}, {"access": "", "host": "Event", "name": "onContentReady", "url": "Event.html#method_onContentReady", "type": "method"}, {"access": "private", "host": "Event", "name": "_poll", "url": "Event.html#method__poll", "type": "method"}, {"access": "", "host": "Event", "name": "POLL_INTERVAL", "url": "Event.html#property_POLL_INTERVAL", "type": "property"}, {"access": "", "host": "Event", "name": "POLL_RETRYS", "url": "Event.html#property_POLL_RETRYS", "type": "property"}, {"access": "", "host": "Event", "name": "purgeElement", "url": "Event.html#method_purgeElement", "type": "method"}, {"access": "private", "host": "Event", "name": "_retryCount", "url": "Event.html#property__retryCount", "type": "property"}, {"access": "private", "host": "Event", "name": "startInterval", "url": "Event.html#method_startInterval", "type": "method"}, {"access": "private", "host": "Event", "name": "_unload", "url": "Event.html#method__unload", "type": "method"}, {"access": "private", "host": "Event", "name": "_wrappers", "url": "Event.html#property__wrappers", "type": "property"}]; |
|
|
1328 |
</script> |
|
|
1329 |
</body> |
|
|
1330 |
</html> |