@irrelon/emitter 6.1.0 → 6.2.1
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 +57 -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/emitStatic.html
DELETED
|
@@ -1,444 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<title>JSDoc: Class: emitStatic</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: emitStatic</h1>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<section>
|
|
28
|
-
|
|
29
|
-
<header>
|
|
30
|
-
|
|
31
|
-
<h2>emitStatic</h2>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
</header>
|
|
35
|
-
|
|
36
|
-
<article>
|
|
37
|
-
<div class="container-overview">
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
<h4 class="name" id="emitStatic"><span class="type-signature"></span>new emitStatic<span class="signature">(event, data)</span><span class="type-signature"> → {*}</span></h4>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<div class="description">
|
|
50
|
-
Emit an event with data that will fire on listeners even when the listener
|
|
51
|
-
is registered AFTER the event has been emitted.
|
|
52
|
-
</div>
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
<h5>Parameters:</h5>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
<table class="params">
|
|
66
|
-
<thead>
|
|
67
|
-
<tr>
|
|
68
|
-
|
|
69
|
-
<th>Name</th>
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
<th>Type</th>
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
<th class="last">Description</th>
|
|
79
|
-
</tr>
|
|
80
|
-
</thead>
|
|
81
|
-
|
|
82
|
-
<tbody>
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
<tr>
|
|
86
|
-
|
|
87
|
-
<td class="name"><code>event</code></td>
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
<td class="type">
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
<span class="param-type">String</span>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
</td>
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
<td class="description last">The event to emit.</td>
|
|
104
|
-
</tr>
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
<tr>
|
|
109
|
-
|
|
110
|
-
<td class="name"><code>data</code></td>
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
<td class="type">
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
<span class="param-type">*</span>
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
</td>
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
<td class="description last">Data to emit with the event.</td>
|
|
127
|
-
</tr>
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
</tbody>
|
|
131
|
-
</table>
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
<dl class="details">
|
|
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
|
-
|
|
165
|
-
<dt class="tag-source">Source:</dt>
|
|
166
|
-
<dd class="tag-source"><ul class="dummy"><li>
|
|
167
|
-
<a href="Emitter.js.html">Emitter.js</a>, <a href="Emitter.js.html#line437">line 437</a>
|
|
168
|
-
</li></ul></dd>
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
</dl>
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
<h5>Returns:</h5>
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
<dl>
|
|
196
|
-
<dt>
|
|
197
|
-
Type
|
|
198
|
-
</dt>
|
|
199
|
-
<dd>
|
|
200
|
-
|
|
201
|
-
<span class="param-type">*</span>
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
</dd>
|
|
205
|
-
</dl>
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
</div>
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
</article>
|
|
232
|
-
|
|
233
|
-
</section>
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
<section>
|
|
242
|
-
|
|
243
|
-
<header>
|
|
244
|
-
|
|
245
|
-
<h2>emitStatic</h2>
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
</header>
|
|
249
|
-
|
|
250
|
-
<article>
|
|
251
|
-
<div class="container-overview">
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
<h4 class="name" id="emitStatic"><span class="type-signature"></span>new emitStatic<span class="signature">(event)</span><span class="type-signature"> → {*}</span></h4>
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
<div class="description">
|
|
264
|
-
Emit an event that will fire on listeners even when the listener
|
|
265
|
-
is registered AFTER the event has been emitted.
|
|
266
|
-
</div>
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
<h5>Parameters:</h5>
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
<table class="params">
|
|
280
|
-
<thead>
|
|
281
|
-
<tr>
|
|
282
|
-
|
|
283
|
-
<th>Name</th>
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
<th>Type</th>
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
<th class="last">Description</th>
|
|
293
|
-
</tr>
|
|
294
|
-
</thead>
|
|
295
|
-
|
|
296
|
-
<tbody>
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
<tr>
|
|
300
|
-
|
|
301
|
-
<td class="name"><code>event</code></td>
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
<td class="type">
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
<span class="param-type">String</span>
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
</td>
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
<td class="description last">The event to emit.</td>
|
|
318
|
-
</tr>
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
</tbody>
|
|
322
|
-
</table>
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
<dl class="details">
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
<dt class="tag-source">Source:</dt>
|
|
357
|
-
<dd class="tag-source"><ul class="dummy"><li>
|
|
358
|
-
<a href="Emitter.js.html">Emitter.js</a>, <a href="Emitter.js.html#line424">line 424</a>
|
|
359
|
-
</li></ul></dd>
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
</dl>
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
<h5>Returns:</h5>
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
<dl>
|
|
387
|
-
<dt>
|
|
388
|
-
Type
|
|
389
|
-
</dt>
|
|
390
|
-
<dd>
|
|
391
|
-
|
|
392
|
-
<span class="param-type">*</span>
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
</dd>
|
|
396
|
-
</dl>
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
</div>
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
</article>
|
|
423
|
-
|
|
424
|
-
</section>
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
</div>
|
|
430
|
-
|
|
431
|
-
<nav>
|
|
432
|
-
<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>
|
|
433
|
-
</nav>
|
|
434
|
-
|
|
435
|
-
<br class="clear">
|
|
436
|
-
|
|
437
|
-
<footer>
|
|
438
|
-
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)
|
|
439
|
-
</footer>
|
|
440
|
-
|
|
441
|
-
<script> prettyPrint(); </script>
|
|
442
|
-
<script src="scripts/linenumber.js"> </script>
|
|
443
|
-
</body>
|
|
444
|
-
</html>
|