source: other-projects/playing-in-the-street/summer-2013/trunk/Playing-in-the-Street-WPF/Content/Web/mrdoob-three.js-4862f5f/docs/api/core/EventDispatcher.html@ 28897

Last change on this file since 28897 was 28897, checked in by davidb, 10 years ago

GUI front-end to server base plus web page content

File size: 1.6 KB
Line 
1<!DOCTYPE html>
2<html lang="en">
3 <head>
4 <meta charset="utf-8" />
5 <script src="../../list.js"></script>
6 <script src="../../page.js"></script>
7 <link type="text/css" rel="stylesheet" href="../../page.css" />
8 </head>
9 <body>
10 <h1>[name]</h1>
11
12 <div class="desc">JavaScript events for custom objects.<br />
13 <a href="https://github.com/mrdoob/eventdispatcher.js">https://github.com/mrdoob/eventdispatcher.js</a></div>
14
15 <h2>Constructor</h2>
16
17
18 <h3>[name]()</h3>
19 <div>
20 Creates EventDispatcher object.
21 </div>
22
23
24 <h2>Methods</h2>
25
26 <h3>.addEventListener( [page:String type], [page:Function listener] )</h3>
27 <div>
28 type - The type of event to listen to.<br />
29 listener - The function that gets called when the event is fired.
30 </div>
31 <div>
32 Adds a listener to an event type.
33 </div>
34
35 <h3>.hasEventListener( [page:String type], [page:Function listener] )</h3>
36 <div>
37 type - The type of event to listen to.<br />
38 listener - The function that gets called when the event is fired.
39 </div>
40 <div>
41 Checks if listener is added to an event type.
42 </div>
43
44 <h3>.removeEventListener( [page:String type], [page:Function listener] )</h3>
45 <div>
46 type - The type of the listener that gets removed.<br />
47 listener - The listener function that gets removed.
48 </div>
49 <div>
50 Removes a listener from an event type.
51 </div>
52
53 <h3>.dispatchEvent( [page:String type] )</h3>
54 <div>
55 type - The type of event that gets fired.
56 </div>
57 <div>
58 Fire an event type.
59 </div>
60
61
62 <h2>Source</h2>
63
64 [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
65 </body>
66</html>
Note: See TracBrowser for help on using the repository browser.