@irrelon/emitter 6.1.0 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +8 -0
- package/dist/cjs/src/Emitter.d.ts +35 -13
- package/dist/cjs/src/Emitter.js +44 -12
- package/dist/cjs/tests/Emitter.test.js +34 -17
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/esm/src/Emitter.d.ts +35 -13
- package/dist/esm/src/Emitter.js +46 -11
- package/dist/esm/tests/Emitter.test.js +34 -17
- package/dist/esm/tsconfig-esm.tsbuildinfo +1 -1
- package/doc/Emitter.html +451 -1551
- package/doc/Emitter.js.html +601 -850
- package/doc/index.html +1 -1
- package/doc/scripts/linenumber.js +9 -9
- package/doc/styles/jsdoc-default.css +2 -2
- package/package.json +59 -57
- package/readme.md +10 -1
- package/src/Emitter.d.ts +290 -0
- package/src/Emitter.js +600 -0
- package/src/Emitter.ts +307 -329
- package/tests/Emitter.test.d.ts +1 -0
- package/tests/Emitter.test.js +472 -0
- package/tests/Emitter.test.ts +241 -210
- package/tsconfig.json +8 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/.prettierrc.yml +0 -26
- package/doc/deferEmit.html +0 -258
- package/doc/emitStatic.html +0 -444
- package/doc/emitStaticId.html +0 -685
- package/doc/global.html +0 -991
- package/doc/global.html#emit +0 -442
- package/doc/off.html +0 -857
- package/doc/on.html +0 -453
- package/doc/once.html +0 -453
- package/doc/willEmit.html +0 -234
- package/doc/willEmitId.html +0 -257
package/doc/on.html
DELETED
|
@@ -1,453 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<title>JSDoc: Class: on</title>
|
|
6
|
-
|
|
7
|
-
<script src="scripts/prettify/prettify.js"> </script>
|
|
8
|
-
<script src="scripts/prettify/lang-css.js"> </script>
|
|
9
|
-
<!--[if lt IE 9]>
|
|
10
|
-
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
|
|
11
|
-
<![endif]-->
|
|
12
|
-
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
|
|
13
|
-
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
|
|
14
|
-
</head>
|
|
15
|
-
|
|
16
|
-
<body>
|
|
17
|
-
|
|
18
|
-
<div id="main">
|
|
19
|
-
|
|
20
|
-
<h1 class="page-title">Class: on</h1>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<section>
|
|
28
|
-
|
|
29
|
-
<header>
|
|
30
|
-
|
|
31
|
-
<h2>on</h2>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
</header>
|
|
35
|
-
|
|
36
|
-
<article>
|
|
37
|
-
<div class="container-overview">
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
<h4 class="name" id="on"><span class="type-signature"></span>new on<span class="signature">(event, listener)</span><span class="type-signature"></span></h4>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<div class="description">
|
|
50
|
-
Attach an event listener to the passed event.
|
|
51
|
-
</div>
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
<h5>Parameters:</h5>
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
<table class="params">
|
|
65
|
-
<thead>
|
|
66
|
-
<tr>
|
|
67
|
-
|
|
68
|
-
<th>Name</th>
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
<th>Type</th>
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
<th class="last">Description</th>
|
|
78
|
-
</tr>
|
|
79
|
-
</thead>
|
|
80
|
-
|
|
81
|
-
<tbody>
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
<tr>
|
|
85
|
-
|
|
86
|
-
<td class="name"><code>event</code></td>
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
<td class="type">
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
<span class="param-type">String</span>
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
</td>
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
<td class="description last">The name of the event to listen for.</td>
|
|
103
|
-
</tr>
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
<tr>
|
|
108
|
-
|
|
109
|
-
<td class="name"><code>listener</code></td>
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
<td class="type">
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
<span class="param-type">function</span>
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
</td>
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
<td class="description last">The method to call when the event is fired.</td>
|
|
126
|
-
</tr>
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
</tbody>
|
|
130
|
-
</table>
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
<dl class="details">
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
<dt class="tag-source">Source:</dt>
|
|
165
|
-
<dd class="tag-source"><ul class="dummy"><li>
|
|
166
|
-
<a href="Emitter.js.html">Emitter.js</a>, <a href="Emitter.js.html#line59">line 59</a>
|
|
167
|
-
</li></ul></dd>
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
</dl>
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
</div>
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
</article>
|
|
213
|
-
|
|
214
|
-
</section>
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
<section>
|
|
223
|
-
|
|
224
|
-
<header>
|
|
225
|
-
|
|
226
|
-
<h2>on</h2>
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
</header>
|
|
230
|
-
|
|
231
|
-
<article>
|
|
232
|
-
<div class="container-overview">
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
<h4 class="name" id="on"><span class="type-signature"></span>new on<span class="signature">(event, id, listener)</span><span class="type-signature"></span></h4>
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
<div class="description">
|
|
245
|
-
Attach an event listener to the passed event only if the passed
|
|
246
|
-
id matches the document id for the event being fired.
|
|
247
|
-
</div>
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
<h5>Parameters:</h5>
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
<table class="params">
|
|
261
|
-
<thead>
|
|
262
|
-
<tr>
|
|
263
|
-
|
|
264
|
-
<th>Name</th>
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
<th>Type</th>
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
<th class="last">Description</th>
|
|
274
|
-
</tr>
|
|
275
|
-
</thead>
|
|
276
|
-
|
|
277
|
-
<tbody>
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
<tr>
|
|
281
|
-
|
|
282
|
-
<td class="name"><code>event</code></td>
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
<td class="type">
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
<span class="param-type">String</span>
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
</td>
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
<td class="description last">The name of the event to listen for.</td>
|
|
299
|
-
</tr>
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
<tr>
|
|
304
|
-
|
|
305
|
-
<td class="name"><code>id</code></td>
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
<td class="type">
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
<span class="param-type">*</span>
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
</td>
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
<td class="description last">The document id to match against.</td>
|
|
322
|
-
</tr>
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
<tr>
|
|
327
|
-
|
|
328
|
-
<td class="name"><code>listener</code></td>
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
<td class="type">
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
<span class="param-type">function</span>
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
</td>
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
<td class="description last">The method to call when the event is fired.</td>
|
|
345
|
-
</tr>
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
</tbody>
|
|
349
|
-
</table>
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
<dl class="details">
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
<dt class="tag-source">Source:</dt>
|
|
384
|
-
<dd class="tag-source"><ul class="dummy"><li>
|
|
385
|
-
<a href="Emitter.js.html">Emitter.js</a>, <a href="Emitter.js.html#line70">line 70</a>
|
|
386
|
-
</li></ul></dd>
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
</dl>
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
</div>
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
</article>
|
|
432
|
-
|
|
433
|
-
</section>
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
</div>
|
|
439
|
-
|
|
440
|
-
<nav>
|
|
441
|
-
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="deferEmit.html">deferEmit</a></li><li><a href="global.html#emit">emit</a></li><li><a href="emitStatic.html">emitStatic</a></li><li><a href="emitStaticId.html">emitStaticId</a></li><li><a href="off.html">off</a></li><li><a href="on.html">on</a></li><li><a href="once.html">once</a></li><li><a href="willEmit.html">willEmit</a></li><li><a href="willEmitId.html">willEmitId</a></li></ul><h3>Global</h3><ul><li><a href="global.html#$main">$main</a></li></ul>
|
|
442
|
-
</nav>
|
|
443
|
-
|
|
444
|
-
<br class="clear">
|
|
445
|
-
|
|
446
|
-
<footer>
|
|
447
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon Oct 30 2017 16:01:17 GMT+0000 (GMT)
|
|
448
|
-
</footer>
|
|
449
|
-
|
|
450
|
-
<script> prettyPrint(); </script>
|
|
451
|
-
<script src="scripts/linenumber.js"> </script>
|
|
452
|
-
</body>
|
|
453
|
-
</html>
|