|
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-custom Do.Method (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-custom <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-custom.html" title="event-custom">event-custom</a> |
|
22 > Do.Method |
|
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">Do.Method</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 Wrapper for a displaced method with aop enabled |
|
63 </div> |
|
64 |
|
65 <div class="section constructor details" rel="yui:constructor" resource="#constructor"> |
|
66 <h3 id="constructor">Constructor</h3> |
|
67 <div class="content"> |
|
68 <div class="detail"> |
|
69 <strong property="yui:name">Do.Method</strong> |
|
70 <code> |
|
71 ( |
|
72 |
|
73 |
|
74 |
|
75 obj |
|
76 |
|
77 , |
|
78 sFn |
|
79 ) |
|
80 </code> |
|
81 <div class="description"> |
|
82 <dl rel="yui:parameters"> |
|
83 <dt>Parameters:</dt> |
|
84 <dd rel="yui:parameter"> |
|
85 <code><span property="yui:name">obj</span> |
|
86 <<span property="yui:type">object</span>> |
|
87 </code> |
|
88 <span property="yui:description"> The object to operate on</span> |
|
89 </dd> |
|
90 <dd rel="yui:parameter"> |
|
91 <code><span property="yui:name">sFn</span> |
|
92 <<span property="yui:type">object</span>> |
|
93 </code> |
|
94 <span property="yui:description"> The name of the method to displace</span> |
|
95 </dd> |
|
96 </dl> |
|
97 |
|
98 |
|
99 </div> |
|
100 </div> |
|
101 </div> |
|
102 </div> |
|
103 |
|
104 <div rel="yui:properties" resource="#properties"> |
|
105 |
|
106 </div> |
|
107 |
|
108 <div rel="yui:methods" resource="#methods"> |
|
109 <div class="section method details"> |
|
110 <h3 id="methods">Methods</h3> |
|
111 <div class="content"> |
|
112 <div class="" rel="yui:method" resource="#method_delete"> |
|
113 <h4> |
|
114 <a name="method_delete">delete</a></h4> |
|
115 <div class="detail" > |
|
116 <code> |
|
117 |
|
118 |
|
119 |
|
120 void |
|
121 <strong property="yui:name">delete</strong> |
|
122 ( |
|
123 |
|
124 |
|
125 sid |
|
126 |
|
127 |
|
128 , |
|
129 fn |
|
130 |
|
131 |
|
132 , |
|
133 when |
|
134 |
|
135 |
|
136 ) |
|
137 </code> |
|
138 |
|
139 <div class="description" property="yui:description"> |
|
140 Unregister a aop subscriber |
|
141 </div> |
|
142 |
|
143 <div class="description"> |
|
144 |
|
145 <dl rel="yui:parameters"> |
|
146 <dt>Parameters:</dt> |
|
147 <dd rel="yui:parameter"> |
|
148 <code><span property="yui:name">sid</span> |
|
149 <<span property="yui:type">string</span>> |
|
150 </code> |
|
151 <span property="yui:description"> the subscriber id</span> |
|
152 </dd> |
|
153 <dd rel="yui:parameter"> |
|
154 <code><span property="yui:name">fn</span> |
|
155 <<span property="yui:type">Function</span>> |
|
156 </code> |
|
157 <span property="yui:description"> the function to execute</span> |
|
158 </dd> |
|
159 <dd rel="yui:parameter"> |
|
160 <code><span property="yui:name">when</span> |
|
161 <<span property="yui:type">string</span>> |
|
162 </code> |
|
163 <span property="yui:description"> when to execute the function</span> |
|
164 </dd> |
|
165 </dl> |
|
166 |
|
167 |
|
168 |
|
169 |
|
170 |
|
171 </div> |
|
172 |
|
173 </div> |
|
174 <hr /> |
|
175 </div> |
|
176 <div class="" rel="yui:method" resource="#method_exec"> |
|
177 <h4> |
|
178 <a name="method_exec">exec</a></h4> |
|
179 <div class="detail" > |
|
180 <code> |
|
181 |
|
182 |
|
183 |
|
184 void |
|
185 <strong property="yui:name">exec</strong> |
|
186 ( |
|
187 ) |
|
188 </code> |
|
189 |
|
190 <div class="description" property="yui:description"> |
|
191 Execute the wrapped method |
|
192 </div> |
|
193 |
|
194 <div class="description"> |
|
195 |
|
196 |
|
197 |
|
198 |
|
199 |
|
200 |
|
201 </div> |
|
202 |
|
203 </div> |
|
204 <hr /> |
|
205 </div> |
|
206 <div class="" rel="yui:method" resource="#method_register"> |
|
207 <h4> |
|
208 <a name="method_register">register</a></h4> |
|
209 <div class="detail" > |
|
210 <code> |
|
211 |
|
212 |
|
213 |
|
214 void |
|
215 <strong property="yui:name">register</strong> |
|
216 ( |
|
217 |
|
218 |
|
219 sid |
|
220 |
|
221 |
|
222 , |
|
223 fn |
|
224 |
|
225 |
|
226 , |
|
227 when |
|
228 |
|
229 |
|
230 ) |
|
231 </code> |
|
232 |
|
233 <div class="description" property="yui:description"> |
|
234 Register a aop subscriber |
|
235 </div> |
|
236 |
|
237 <div class="description"> |
|
238 |
|
239 <dl rel="yui:parameters"> |
|
240 <dt>Parameters:</dt> |
|
241 <dd rel="yui:parameter"> |
|
242 <code><span property="yui:name">sid</span> |
|
243 <<span property="yui:type">string</span>> |
|
244 </code> |
|
245 <span property="yui:description"> the subscriber id</span> |
|
246 </dd> |
|
247 <dd rel="yui:parameter"> |
|
248 <code><span property="yui:name">fn</span> |
|
249 <<span property="yui:type">Function</span>> |
|
250 </code> |
|
251 <span property="yui:description"> the function to execute</span> |
|
252 </dd> |
|
253 <dd rel="yui:parameter"> |
|
254 <code><span property="yui:name">when</span> |
|
255 <<span property="yui:type">string</span>> |
|
256 </code> |
|
257 <span property="yui:description"> when to execute the function</span> |
|
258 </dd> |
|
259 </dl> |
|
260 |
|
261 |
|
262 |
|
263 |
|
264 |
|
265 </div> |
|
266 |
|
267 </div> |
|
268 <hr /> |
|
269 </div> |
|
270 </div> |
|
271 </div> |
|
272 |
|
273 </div> |
|
274 |
|
275 <div rel="yui:events" resource="#events"> |
|
276 |
|
277 |
|
278 </div> |
|
279 |
|
280 <div rel="yui:attributes" resource="#configattributes"> |
|
281 |
|
282 </div> |
|
283 |
|
284 </div> |
|
285 </div> |
|
286 <div class="yui-b"> |
|
287 <div class="nav"> |
|
288 |
|
289 <div id="moduleList" class="module"> |
|
290 <h4>Modules</h4> |
|
291 <ul class="content"> |
|
292 <li class=""><a href="module_anim.html" title="anim">anim</a></li> |
|
293 <li class=""><a href="module_async-queue.html" title="async-queue">async-queue</a></li> |
|
294 <li class=""><a href="module_attribute.html" title="attribute">attribute</a></li> |
|
295 <li class=""><a href="module_base.html" title="base">base</a></li> |
|
296 <li class=""><a href="module_cache.html" title="cache">cache</a></li> |
|
297 <li class=""><a href="module_classnamemanager.html" title="classnamemanager">classnamemanager</a></li> |
|
298 <li class=""><a href="module_collection.html" title="collection">collection</a></li> |
|
299 <li class=""><a href="module_console.html" title="console">console</a></li> |
|
300 <li class=""><a href="module_console-filters.html" title="console-filters">console-filters</a></li> |
|
301 <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li> |
|
302 <li class=""><a href="module_dataschema.html" title="dataschema">dataschema</a></li> |
|
303 <li class=""><a href="module_datasource.html" title="datasource">datasource</a></li> |
|
304 <li class=""><a href="module_datatype.html" title="datatype">datatype</a></li> |
|
305 <li class=""><a href="module_dd.html" title="dd">dd</a></li> |
|
306 <li class=""><a href="module_dom.html" title="dom">dom</a></li> |
|
307 <li class=""><a href="module_dump.html" title="dump">dump</a></li> |
|
308 <li class=""><a href="module_event.html" title="event">event</a></li> |
|
309 <li class="selected"><a href="module_event-custom.html" title="event-custom">event-custom</a></li> |
|
310 <li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li> |
|
311 <li class=""><a href="module_history.html" title="history">history</a></li> |
|
312 <li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li> |
|
313 <li class=""><a href="module_io.html" title="io">io</a></li> |
|
314 <li class=""><a href="module_json.html" title="json">json</a></li> |
|
315 <li class=""><a href="module_node.html" title="node">node</a></li> |
|
316 <li class=""><a href="module_node-focusmanager.html" title="node-focusmanager">node-focusmanager</a></li> |
|
317 <li class=""><a href="module_node-menunav.html" title="node-menunav">node-menunav</a></li> |
|
318 <li class=""><a href="module_oop.html" title="oop">oop</a></li> |
|
319 <li class=""><a href="module_overlay.html" title="overlay">overlay</a></li> |
|
320 <li class=""><a href="module_plugin.html" title="plugin">plugin</a></li> |
|
321 <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li> |
|
322 <li class=""><a href="module_queue-promote.html" title="queue-promote">queue-promote</a></li> |
|
323 <li class=""><a href="module_slider.html" title="slider">slider</a></li> |
|
324 <li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li> |
|
325 <li class=""><a href="module_substitute.html" title="substitute">substitute</a></li> |
|
326 <li class=""><a href="module_test.html" title="test">test</a></li> |
|
327 <li class=""><a href="module_widget.html" title="widget">widget</a></li> |
|
328 <li class=""><a href="module_widget-position.html" title="widget-position">widget-position</a></li> |
|
329 <li class=""><a href="module_widget-position-ext.html" title="widget-position-ext">widget-position-ext</a></li> |
|
330 <li class=""><a href="module_widget-stack.html" title="widget-stack">widget-stack</a></li> |
|
331 <li class=""><a href="module_widget-stdmod.html" title="widget-stdmod">widget-stdmod</a></li> |
|
332 <li class=""><a href="module_yui.html" title="yui">yui</a></li> |
|
333 </ul> |
|
334 </div> |
|
335 |
|
336 <div id="classList" class="module"> |
|
337 <h4>Classes</h4> |
|
338 <ul class="content"> |
|
339 <li class=""><a href="CustomEvent.html" title="CustomEvent">CustomEvent</a></li> |
|
340 <li class=""><a href="Do.html" title="Do">Do</a></li> |
|
341 <li class=""><a href="Do.AlterArgs.html" title="Do.AlterArgs">Do.AlterArgs</a></li> |
|
342 <li class=""><a href="Do.AlterReturn.html" title="Do.AlterReturn">Do.AlterReturn</a></li> |
|
343 <li class=""><a href="Do.Error.html" title="Do.Error">Do.Error</a></li> |
|
344 <li class=""><a href="Do.Halt.html" title="Do.Halt">Do.Halt</a></li> |
|
345 <li class="selected"><a href="Do.Method.html" title="Do.Method">Do.Method</a></li> |
|
346 <li class=""><a href="Do.Prevent.html" title="Do.Prevent">Do.Prevent</a></li> |
|
347 <li class=""><a href="EventFacade.html" title="EventFacade">EventFacade</a></li> |
|
348 <li class=""><a href="EventHandle.html" title="EventHandle">EventHandle</a></li> |
|
349 <li class=""><a href="EventTarget.html" title="EventTarget">EventTarget</a></li> |
|
350 <li class=""><a href="Subscriber.html" title="Subscriber">Subscriber</a></li> |
|
351 </ul> |
|
352 </div> |
|
353 |
|
354 <div id="fileList" class="module"> |
|
355 <h4>Files</h4> |
|
356 <ul class="content"> |
|
357 <li class=""><a href="event-custom.js.html" title="event-custom.js">event-custom.js</a></li> |
|
358 <li class=""><a href="event-do.js.html" title="event-do.js">event-do.js</a></li> |
|
359 <li class=""><a href="event-facade.js.html" title="event-facade.js">event-facade.js</a></li> |
|
360 <li class=""><a href="event-target.js.html" title="event-target.js">event-target.js</a></li> |
|
361 <li class=""><a href="event.js.html" title="event.js">event.js</a></li> |
|
362 </ul> |
|
363 </div> |
|
364 |
|
365 |
|
366 <div id="methodsList" class="module"> |
|
367 <h4>Methods</h4> |
|
368 <ul class="content"> |
|
369 <li class=""><a href="#method_delete" title="delete">delete</a></li> |
|
370 <li class=""><a href="#method_exec" title="exec">exec</a></li> |
|
371 <li class=""><a href="#method_register" title="register">register</a></li> |
|
372 </ul> |
|
373 </div> |
|
374 |
|
375 |
|
376 |
|
377 </div> |
|
378 </div> |
|
379 </div> |
|
380 <div id="ft"> |
|
381 <hr /> |
|
382 Copyright © 2009 Yahoo! Inc. All rights reserved. |
|
383 </div> |
|
384 </div> |
|
385 <script type="text/javascript"> |
|
386 ALL_YUI_PROPS = [{"access": "", "host": "EventTarget", "name": "addTarget", "url": "EventTarget.html#method_addTarget", "type": "method"}, {"access": "", "host": "EventTarget", "name": "after", "url": "EventTarget.html#method_after", "type": "method"}, {"access": "", "host": "Do", "name": "after", "url": "Do.html#method_after", "type": "method"}, {"access": "", "host": "EventTarget", "name": "before", "url": "EventTarget.html#method_before", "type": "method"}, {"access": "", "host": "Do", "name": "before", "url": "Do.html#method_before", "type": "method"}, {"access": "", "host": "EventTarget", "name": "bubble", "url": "EventTarget.html#method_bubble", "type": "method"}, {"access": "", "host": "EventFacade", "name": "currentTarget", "url": "EventFacade.html#property_currentTarget", "type": "property"}, {"access": "", "host": "Do.Method", "name": "delete", "url": "Do.Method.html#method_delete", "type": "method"}, {"access": "", "host": "EventTarget", "name": "detach", "url": "EventTarget.html#method_detach", "type": "method"}, {"access": "", "host": "Do", "name": "detach", "url": "Do.html#method_detach", "type": "method"}, {"access": "", "host": "EventTarget", "name": "detachAll", "url": "EventTarget.html#method_detachAll", "type": "method"}, {"access": "", "host": "EventFacade", "name": "details", "url": "EventFacade.html#property_details", "type": "property"}, {"access": "", "host": "Do.Method", "name": "exec", "url": "Do.Method.html#method_exec", "type": "method"}, {"access": "", "host": "EventTarget", "name": "fire", "url": "EventTarget.html#method_fire", "type": "method"}, {"access": "", "host": "EventTarget", "name": "getEvent", "url": "EventTarget.html#method_getEvent", "type": "method"}, {"access": "private", "host": "EventTarget", "name": "_getType", "url": "EventTarget.html#method__getType", "type": "method"}, {"access": "", "host": "EventFacade", "name": "halt", "url": "EventFacade.html#method_halt", "type": "method"}, {"access": "private", "host": "Do", "name": "_inject", "url": "Do.html#method__inject", "type": "method"}, {"access": "", "host": "Do", "name": "objs", "url": "Do.html#property_objs", "type": "property"}, {"access": "", "host": "EventTarget", "name": "on", "url": "EventTarget.html#method_on", "type": "method"}, {"access": "private", "host": "EventTarget", "name": "_parseType", "url": "EventTarget.html#method__parseType", "type": "method"}, {"access": "", "host": "EventFacade", "name": "preventDefault", "url": "EventFacade.html#method_preventDefault", "type": "method"}, {"access": "", "host": "EventTarget", "name": "publish", "url": "EventTarget.html#method_publish", "type": "method"}, {"access": "", "host": "Do.Method", "name": "register", "url": "Do.Method.html#method_register", "type": "method"}, {"access": "", "host": "EventFacade", "name": "relatedTarget", "url": "EventFacade.html#property_relatedTarget", "type": "property"}, {"access": "", "host": "EventTarget", "name": "removeTarget", "url": "EventTarget.html#method_removeTarget", "type": "method"}, {"access": "", "host": "EventFacade", "name": "stopImmediatePropagation", "url": "EventFacade.html#method_stopImmediatePropagation", "type": "method"}, {"access": "", "host": "EventFacade", "name": "stopPropagation", "url": "EventFacade.html#method_stopPropagation", "type": "method"}, {"access": "", "host": "EventTarget", "name": "subscribe", "url": "EventTarget.html#method_subscribe", "type": "method"}, {"access": "", "host": "EventFacade", "name": "target", "url": "EventFacade.html#property_target", "type": "property"}, {"access": "", "host": "EventFacade", "name": "type", "url": "EventFacade.html#property_type", "type": "property"}, {"access": "", "host": "EventTarget", "name": "unsubscribe", "url": "EventTarget.html#method_unsubscribe", "type": "method"}, {"access": "", "host": "EventTarget", "name": "unsubscribeAll", "url": "EventTarget.html#method_unsubscribeAll", "type": "method"}]; |
|
387 </script> |
|
388 </body> |
|
389 </html> |