123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <script src="../../list.js"></script>
- <script src="../../page.js"></script>
- <link type="text/css" rel="stylesheet" href="../../page.css" />
- </head>
- <body>
- <h1>[name]</h1>
- <div class="desc">JavaScript events for custom objects.<br />
- <a href="https://github.com/mrdoob/eventdispatcher.js">https://github.com/mrdoob/eventdispatcher.js</a></div>
- <h2>Constructor</h2>
- <h3>[name]()</h3>
- <div>
- Creates EventDispatcher object.
- </div>
- <h2>Methods</h2>
- <h3>.addEventListener( [page:String type], [page:Function listener] )</h3>
- <div>
- type - The type of event to listen to.<br />
- listener - The function that gets called when the event is fired.
- </div>
- <div>
- Adds a listener to an event type.
- </div>
- <h3>.hasEventListener( [page:String type], [page:Function listener] )</h3>
- <div>
- type - The type of event to listen to.<br />
- listener - The function that gets called when the event is fired.
- </div>
- <div>
- Checks if listener is added to an event type.
- </div>
- <h3>.removeEventListener( [page:String type], [page:Function listener] )</h3>
- <div>
- type - The type of the listener that gets removed.<br />
- listener - The listener function that gets removed.
- </div>
- <div>
- Removes a listener from an event type.
- </div>
- <h3>.dispatchEvent( [page:String type] )</h3>
- <div>
- type - The type of event that gets fired.
- </div>
- <div>
- Fire an event type.
- </div>
- <h2>Source</h2>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </body>
- </html>
|