|
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-custom EventHandle (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 |
> EventHandle |
|
|
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">EventHandle</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 |
Return value from all subscribe operations |
|
|
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">EventHandle</strong> |
|
|
70 |
<code> |
|
|
71 |
( |
|
|
72 |
|
|
|
73 |
|
|
|
74 |
|
|
|
75 |
evt |
|
|
76 |
|
|
|
77 |
, |
|
|
78 |
sub |
|
|
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">evt</span> |
|
|
86 |
<<span property="yui:type">CustomEvent</span>> |
|
|
87 |
</code> |
|
|
88 |
<span property="yui:description"> the custom event</span> |
|
|
89 |
</dd> |
|
|
90 |
<dd rel="yui:parameter"> |
|
|
91 |
<code><span property="yui:name">sub</span> |
|
|
92 |
<<span property="yui:type">Subscriber</span>> |
|
|
93 |
</code> |
|
|
94 |
<span property="yui:description"> the subscriber</span> |
|
|
95 |
</dd> |
|
|
96 |
</dl> |
|
|
97 |
|
|
|
98 |
|
|
|
99 |
</div> |
|
|
100 |
</div> |
|
|
101 |
</div> |
|
|
102 |
</div> |
|
|
103 |
|
|
|
104 |
<div rel="yui:properties" resource="#properties"> |
|
|
105 |
<div class="section field details"> |
|
|
106 |
<h3 id="properties">Properties</h3> |
|
|
107 |
<div class="content"> |
|
|
108 |
<div class="" rel="yui:property" resource="#property_evt"> |
|
|
109 |
<h4><a name="property_evt" property="yui:name">evt</a> |
|
|
110 |
- <code><span property="yui:type">CustomEvent</span></code> |
|
|
111 |
</h4> |
|
|
112 |
<div class="detail"> |
|
|
113 |
<div class="description" property="yui:description"> |
|
|
114 |
The custom event |
|
|
115 |
</div> |
|
|
116 |
</div> |
|
|
117 |
|
|
|
118 |
|
|
|
119 |
|
|
|
120 |
|
|
|
121 |
<hr /> |
|
|
122 |
</div> |
|
|
123 |
<div class="" rel="yui:property" resource="#property_sub"> |
|
|
124 |
<h4><a name="property_sub" property="yui:name">sub</a> |
|
|
125 |
- <code><span property="yui:type">Subscriber</span></code> |
|
|
126 |
</h4> |
|
|
127 |
<div class="detail"> |
|
|
128 |
<div class="description" property="yui:description"> |
|
|
129 |
The subscriber object |
|
|
130 |
</div> |
|
|
131 |
</div> |
|
|
132 |
|
|
|
133 |
|
|
|
134 |
|
|
|
135 |
|
|
|
136 |
<hr /> |
|
|
137 |
</div> |
|
|
138 |
</div> |
|
|
139 |
</div> |
|
|
140 |
|
|
|
141 |
</div> |
|
|
142 |
|
|
|
143 |
<div rel="yui:methods" resource="#methods"> |
|
|
144 |
<div class="section method details"> |
|
|
145 |
<h3 id="methods">Methods</h3> |
|
|
146 |
<div class="content"> |
|
|
147 |
<div class="" rel="yui:method" resource="#method_detach"> |
|
|
148 |
<h4> |
|
|
149 |
<a name="method_detach">detach</a></h4> |
|
|
150 |
<div class="detail" > |
|
|
151 |
<code> |
|
|
152 |
|
|
|
153 |
|
|
|
154 |
|
|
|
155 |
void |
|
|
156 |
<strong property="yui:name">detach</strong> |
|
|
157 |
( |
|
|
158 |
) |
|
|
159 |
</code> |
|
|
160 |
|
|
|
161 |
<div class="description" property="yui:description"> |
|
|
162 |
Detaches this subscriber |
|
|
163 |
</div> |
|
|
164 |
|
|
|
165 |
<div class="description"> |
|
|
166 |
|
|
|
167 |
|
|
|
168 |
|
|
|
169 |
|
|
|
170 |
|
|
|
171 |
|
|
|
172 |
</div> |
|
|
173 |
|
|
|
174 |
</div> |
|
|
175 |
<hr /> |
|
|
176 |
</div> |
|
|
177 |
</div> |
|
|
178 |
</div> |
|
|
179 |
|
|
|
180 |
</div> |
|
|
181 |
|
|
|
182 |
<div rel="yui:events" resource="#events"> |
|
|
183 |
|
|
|
184 |
|
|
|
185 |
</div> |
|
|
186 |
|
|
|
187 |
<div rel="yui:attributes" resource="#configattributes"> |
|
|
188 |
|
|
|
189 |
</div> |
|
|
190 |
|
|
|
191 |
</div> |
|
|
192 |
</div> |
|
|
193 |
<div class="yui-b"> |
|
|
194 |
<div class="nav"> |
|
|
195 |
|
|
|
196 |
<div id="moduleList" class="module"> |
|
|
197 |
<h4>Modules</h4> |
|
|
198 |
<ul class="content"> |
|
|
199 |
<li class=""><a href="module_anim.html" title="anim">anim</a></li> |
|
|
200 |
<li class=""><a href="module_async-queue.html" title="async-queue">async-queue</a></li> |
|
|
201 |
<li class=""><a href="module_attribute.html" title="attribute">attribute</a></li> |
|
|
202 |
<li class=""><a href="module_base.html" title="base">base</a></li> |
|
|
203 |
<li class=""><a href="module_cache.html" title="cache">cache</a></li> |
|
|
204 |
<li class=""><a href="module_classnamemanager.html" title="classnamemanager">classnamemanager</a></li> |
|
|
205 |
<li class=""><a href="module_collection.html" title="collection">collection</a></li> |
|
|
206 |
<li class=""><a href="module_console.html" title="console">console</a></li> |
|
|
207 |
<li class=""><a href="module_console-filters.html" title="console-filters">console-filters</a></li> |
|
|
208 |
<li class=""><a href="module_cookie.html" title="cookie">cookie</a></li> |
|
|
209 |
<li class=""><a href="module_dataschema.html" title="dataschema">dataschema</a></li> |
|
|
210 |
<li class=""><a href="module_datasource.html" title="datasource">datasource</a></li> |
|
|
211 |
<li class=""><a href="module_datatype.html" title="datatype">datatype</a></li> |
|
|
212 |
<li class=""><a href="module_dd.html" title="dd">dd</a></li> |
|
|
213 |
<li class=""><a href="module_dom.html" title="dom">dom</a></li> |
|
|
214 |
<li class=""><a href="module_dump.html" title="dump">dump</a></li> |
|
|
215 |
<li class=""><a href="module_event.html" title="event">event</a></li> |
|
|
216 |
<li class="selected"><a href="module_event-custom.html" title="event-custom">event-custom</a></li> |
|
|
217 |
<li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li> |
|
|
218 |
<li class=""><a href="module_history.html" title="history">history</a></li> |
|
|
219 |
<li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li> |
|
|
220 |
<li class=""><a href="module_io.html" title="io">io</a></li> |
|
|
221 |
<li class=""><a href="module_json.html" title="json">json</a></li> |
|
|
222 |
<li class=""><a href="module_node.html" title="node">node</a></li> |
|
|
223 |
<li class=""><a href="module_node-focusmanager.html" title="node-focusmanager">node-focusmanager</a></li> |
|
|
224 |
<li class=""><a href="module_node-menunav.html" title="node-menunav">node-menunav</a></li> |
|
|
225 |
<li class=""><a href="module_oop.html" title="oop">oop</a></li> |
|
|
226 |
<li class=""><a href="module_overlay.html" title="overlay">overlay</a></li> |
|
|
227 |
<li class=""><a href="module_plugin.html" title="plugin">plugin</a></li> |
|
|
228 |
<li class=""><a href="module_profiler.html" title="profiler">profiler</a></li> |
|
|
229 |
<li class=""><a href="module_queue-promote.html" title="queue-promote">queue-promote</a></li> |
|
|
230 |
<li class=""><a href="module_slider.html" title="slider">slider</a></li> |
|
|
231 |
<li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li> |
|
|
232 |
<li class=""><a href="module_substitute.html" title="substitute">substitute</a></li> |
|
|
233 |
<li class=""><a href="module_test.html" title="test">test</a></li> |
|
|
234 |
<li class=""><a href="module_widget.html" title="widget">widget</a></li> |
|
|
235 |
<li class=""><a href="module_widget-position.html" title="widget-position">widget-position</a></li> |
|
|
236 |
<li class=""><a href="module_widget-position-ext.html" title="widget-position-ext">widget-position-ext</a></li> |
|
|
237 |
<li class=""><a href="module_widget-stack.html" title="widget-stack">widget-stack</a></li> |
|
|
238 |
<li class=""><a href="module_widget-stdmod.html" title="widget-stdmod">widget-stdmod</a></li> |
|
|
239 |
<li class=""><a href="module_yui.html" title="yui">yui</a></li> |
|
|
240 |
</ul> |
|
|
241 |
</div> |
|
|
242 |
|
|
|
243 |
<div id="classList" class="module"> |
|
|
244 |
<h4>Classes</h4> |
|
|
245 |
<ul class="content"> |
|
|
246 |
<li class=""><a href="CustomEvent.html" title="CustomEvent">CustomEvent</a></li> |
|
|
247 |
<li class=""><a href="Do.html" title="Do">Do</a></li> |
|
|
248 |
<li class=""><a href="Do.AlterArgs.html" title="Do.AlterArgs">Do.AlterArgs</a></li> |
|
|
249 |
<li class=""><a href="Do.AlterReturn.html" title="Do.AlterReturn">Do.AlterReturn</a></li> |
|
|
250 |
<li class=""><a href="Do.Error.html" title="Do.Error">Do.Error</a></li> |
|
|
251 |
<li class=""><a href="Do.Halt.html" title="Do.Halt">Do.Halt</a></li> |
|
|
252 |
<li class=""><a href="Do.Method.html" title="Do.Method">Do.Method</a></li> |
|
|
253 |
<li class=""><a href="Do.Prevent.html" title="Do.Prevent">Do.Prevent</a></li> |
|
|
254 |
<li class=""><a href="EventFacade.html" title="EventFacade">EventFacade</a></li> |
|
|
255 |
<li class="selected"><a href="EventHandle.html" title="EventHandle">EventHandle</a></li> |
|
|
256 |
<li class=""><a href="EventTarget.html" title="EventTarget">EventTarget</a></li> |
|
|
257 |
<li class=""><a href="Subscriber.html" title="Subscriber">Subscriber</a></li> |
|
|
258 |
</ul> |
|
|
259 |
</div> |
|
|
260 |
|
|
|
261 |
<div id="fileList" class="module"> |
|
|
262 |
<h4>Files</h4> |
|
|
263 |
<ul class="content"> |
|
|
264 |
<li class=""><a href="event-custom.js.html" title="event-custom.js">event-custom.js</a></li> |
|
|
265 |
<li class=""><a href="event-do.js.html" title="event-do.js">event-do.js</a></li> |
|
|
266 |
<li class=""><a href="event-facade.js.html" title="event-facade.js">event-facade.js</a></li> |
|
|
267 |
<li class=""><a href="event-target.js.html" title="event-target.js">event-target.js</a></li> |
|
|
268 |
<li class=""><a href="event.js.html" title="event.js">event.js</a></li> |
|
|
269 |
</ul> |
|
|
270 |
</div> |
|
|
271 |
|
|
|
272 |
<div id="propertyList" class="module"> |
|
|
273 |
<h4>Properties</h4> |
|
|
274 |
<ul class="content"> |
|
|
275 |
<li class=""><a href="#property_evt" title="evt">evt</a></li> |
|
|
276 |
<li class=""><a href="#property_sub" title="sub">sub</a></li> |
|
|
277 |
</ul> |
|
|
278 |
</div> |
|
|
279 |
|
|
|
280 |
<div id="methodsList" class="module"> |
|
|
281 |
<h4>Methods</h4> |
|
|
282 |
<ul class="content"> |
|
|
283 |
<li class=""><a href="#method_detach" title="detach">detach</a></li> |
|
|
284 |
</ul> |
|
|
285 |
</div> |
|
|
286 |
|
|
|
287 |
|
|
|
288 |
|
|
|
289 |
</div> |
|
|
290 |
</div> |
|
|
291 |
</div> |
|
|
292 |
<div id="ft"> |
|
|
293 |
<hr /> |
|
|
294 |
Copyright © 2009 Yahoo! Inc. All rights reserved. |
|
|
295 |
</div> |
|
|
296 |
</div> |
|
|
297 |
<script type="text/javascript"> |
|
|
298 |
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": "EventHandle", "name": "detach", "url": "EventHandle.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": "EventHandle", "name": "evt", "url": "EventHandle.html#property_evt", "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": "EventHandle", "name": "sub", "url": "EventHandle.html#property_sub", "type": "property"}, {"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"}]; |
|
|
299 |
</script> |
|
|
300 |
</body> |
|
|
301 |
</html> |