UNPKG

67.5 kBHTMLView Raw
1<!DOCTYPE html>
2
3<html lang="en">
4<head>
5 <meta charset="utf-8">
6 <meta name="viewport" content="width=device-width">
7 <title>CrossBrowdy API documentation Namespace: CB_Events</title>
8
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/sunlight.default.css">
13
14 <link type="text/css" rel="stylesheet" href="styles/site.cosmo.css">
15
16</head>
17
18<body style="min-width:800px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
19
20<div class="navbar navbar-default navbar-fixed-top ">
21<div class="container">
22 <div class="navbar-header">
23 <a class="navbar-brand" href="index.html">CrossBrowdy API documentation</a>
24 <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
25 <span class="icon-bar"></span>
26 <span class="icon-bar"></span>
27 <span class="icon-bar"></span>
28 </button>
29 </div>
30 <div class="navbar-collapse collapse" id="topNavigation">
31 <ul class="nav navbar-nav">
32
33 <li class="dropdown">
34 <a href="namespaces.list.html" class="dropdown-toggle" data-toggle="dropdown">Namespaces<b class="caret"></b></a>
35 <ul class="dropdown-menu inline">
36 <li><a href="CB_Arrays.html">CB_Arrays</a></li><li><a href="CB_AudioDetector.html">CB_AudioDetector</a></li><li><a href="CB_baseSymbols.html">CB_baseSymbols</a></li><li><a href="CB_Client.html">CB_Client</a></li><li><a href="CB_Collisions.html">CB_Collisions</a></li><li><a href="CB_Configuration.html">CB_Configuration</a></li><li><a href="CB_Configuration.CrossBase.html">CB_Configuration.CrossBase</a></li><li><a href="CB_Configuration.CrossBrowdy.html">CB_Configuration.CrossBrowdy</a></li><li><a href="CB_Controllers.html">CB_Controllers</a></li><li><a href="CB_Controllers_Proprietary.html">CB_Controllers_Proprietary</a></li><li><a href="CB_Controllers_Proprietary.WII.html">CB_Controllers_Proprietary.WII</a></li><li><a href="CB_Controllers_Proprietary.WII_U.html">CB_Controllers_Proprietary.WII_U</a></li><li><a href="CB_Device.html">CB_Device</a></li><li><a href="CB_Device.AmbientLight.html">CB_Device.AmbientLight</a></li><li><a href="CB_Device.Battery.html">CB_Device.Battery</a></li><li><a href="CB_Device.Location.html">CB_Device.Location</a></li><li><a href="CB_Device.Motion.html">CB_Device.Motion</a></li><li><a href="CB_Device.Orientation.html">CB_Device.Orientation</a></li><li><a href="CB_Device.Proximity.html">CB_Device.Proximity</a></li><li><a href="CB_Device.Vibration.html">CB_Device.Vibration</a></li><li><a href="CB_Elements.html">CB_Elements</a></li><li><a href="CB_Events.html">CB_Events</a></li><li><a href="CB_Keyboard.html">CB_Keyboard</a></li><li><a href="CB_Keyboard.chars.html">CB_Keyboard.chars</a></li><li><a href="CB_Keyboard.extended.html">CB_Keyboard.extended</a></li><li><a href="CB_Keyboard.keys.html">CB_Keyboard.keys</a></li><li><a href="CB_Modules.html">CB_Modules</a></li><li><a href="CB_Mouse.html">CB_Mouse</a></li><li><a href="CB_Mouse.CursorImage.html">CB_Mouse.CursorImage</a></li><li><a href="CB_Net.html">CB_Net</a></li><li><a href="CB_Net.Fetch.html">CB_Net.Fetch</a></li><li><a href="CB_Net.REST.html">CB_Net.REST</a></li><li><a href="CB_Net.Sockets.html">CB_Net.Sockets</a></li><li><a href="CB_Net.Sockets.SockJS.html">CB_Net.Sockets.SockJS</a></li><li><a href="CB_Net.XHR.html">CB_Net.XHR</a></li><li><a href="CB_Pointer.html">CB_Pointer</a></li><li><a href="CB_Screen.html">CB_Screen</a></li><li><a href="CB_Speaker.html">CB_Speaker</a></li><li><a href="CB_Touch.html">CB_Touch</a></li>
37 </ul>
38 </li>
39
40 <li class="dropdown">
41 <a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b class="caret"></b></a>
42 <ul class="dropdown-menu inline">
43 <li><a href="CB_AudioFile.html">CB_AudioFile</a></li><li><a href="CB_AudioFile_API.AAPI.html">CB_AudioFile_API.AAPI</a></li><li><a href="CB_AudioFile_API.ACMP.html">CB_AudioFile_API.ACMP</a></li><li><a href="CB_AudioFile_API.SM2.html">CB_AudioFile_API.SM2</a></li><li><a href="CB_AudioFile_API.WAAPI.html">CB_AudioFile_API.WAAPI</a></li><li><a href="CB_AudioFileCache.html">CB_AudioFileCache</a></li><li><a href="CB_AudioFileSprites.html">CB_AudioFileSprites</a></li><li><a href="CB_AudioFileSpritesPool.html">CB_AudioFileSpritesPool</a></li><li><a href="CB_Canvas.html">CB_Canvas</a></li><li><a href="CB_GraphicSprites.html">CB_GraphicSprites</a></li><li><a href="CB_GraphicSpritesScene.html">CB_GraphicSpritesScene</a></li>
44 </ul>
45 </li>
46
47 <li class="dropdown">
48 <a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b class="caret"></b></a>
49 <ul class="dropdown-menu inline">
50 <li><a href="global.html#CB_addCredits">CB_addCredits</a></li><li><a href="global.html#CB_BASE_NAME">CB_BASE_NAME</a></li><li><a href="global.html#CB_baseToBase">CB_baseToBase</a></li><li><a href="global.html#CB_baseToInt">CB_baseToInt</a></li><li><a href="global.html#CB_br2nl">CB_br2nl</a></li><li><a href="global.html#CB_brToNl">CB_brToNl</a></li><li><a href="global.html#CB_combineArraysOrObjects">CB_combineArraysOrObjects</a></li><li><a href="global.html#CB_combineAutomatically">CB_combineAutomatically</a></li><li><a href="global.html#CB_combineJSON">CB_combineJSON</a></li><li><a href="global.html#CB_combineURIParameters">CB_combineURIParameters</a></li><li><a href="global.html#CB_combineURLParameters">CB_combineURLParameters</a></li><li><a href="global.html#CB_console">CB_console</a></li><li><a href="global.html#CB_copyObject">CB_copyObject</a></li><li><a href="global.html#CB_countDecimalDigits">CB_countDecimalDigits</a></li><li><a href="global.html#CB_countDecimalPart">CB_countDecimalPart</a></li><li><a href="global.html#CB_countDecimals">CB_countDecimals</a></li><li><a href="global.html#CB_countIntegerDigits">CB_countIntegerDigits</a></li><li><a href="global.html#CB_countIntegerPart">CB_countIntegerPart</a></li><li><a href="global.html#CB_credits">CB_credits</a></li><li><a href="global.html#CB_CREDITS_DEFAULT">CB_CREDITS_DEFAULT</a></li><li><a href="global.html#CB_forceString">CB_forceString</a></li><li><a href="global.html#CB_forEach">CB_forEach</a></li><li><a href="global.html#CB_getBase64StringObject">CB_getBase64StringObject</a></li><li><a href="global.html#CB_getCookie">CB_getCookie</a></li><li><a href="global.html#CB_getDatum">CB_getDatum</a></li><li><a href="global.html#CB_getJSONPropertyValue">CB_getJSONPropertyValue</a></li><li><a href="global.html#CB_getLZStringObject">CB_getLZStringObject</a></li><li><a href="global.html#CB_getValueIndex">CB_getValueIndex</a></li><li><a href="global.html#CB_getValuePath">CB_getValuePath</a></li><li><a href="global.html#CB_includeJSFile">CB_includeJSFile</a></li><li><a href="global.html#CB_indexOf">CB_indexOf</a></li><li><a href="global.html#CB_init">CB_init</a></li><li><a href="global.html#CB_intToBase">CB_intToBase</a></li><li><a href="global.html#CB_isArray">CB_isArray</a></li><li><a href="global.html#CB_isEmail">CB_isEmail</a></li><li><a href="global.html#CB_isFileLocal">CB_isFileLocal</a></li><li><a href="global.html#CB_isString">CB_isString</a></li><li><a href="global.html#CB_lastIndexOf">CB_lastIndexOf</a></li><li><a href="global.html#CB_ltrim">CB_ltrim</a></li><li><a href="global.html#CB_NAME">CB_NAME</a></li><li><a href="global.html#CB_nl2br">CB_nl2br</a></li><li><a href="global.html#CB_nlToBr">CB_nlToBr</a></li><li><a href="global.html#CB_numberFormat">CB_numberFormat</a></li><li><a href="global.html#CB_numberOfDecimalDigits">CB_numberOfDecimalDigits</a></li><li><a href="global.html#CB_numberOfDecimals">CB_numberOfDecimals</a></li><li><a href="global.html#CB_numberOfIntegerDigits">CB_numberOfIntegerDigits</a></li><li><a href="global.html#CB_OPTIONS">CB_OPTIONS</a></li><li><a href="global.html#CB_parseJSON">CB_parseJSON</a></li><li><a href="global.html#CB_parseString">CB_parseString</a></li><li><a href="global.html#CB_regularExpressionString">CB_regularExpressionString</a></li><li><a href="global.html#CB_renderString">CB_renderString</a></li><li><a href="global.html#CB_replaceAll">CB_replaceAll</a></li><li><a href="global.html#CB_rtrim">CB_rtrim</a></li><li><a href="global.html#CB_scriptPath">CB_scriptPath</a></li><li><a href="global.html#CB_scriptPathCalculate">CB_scriptPathCalculate</a></li><li><a href="global.html#CB_setCookie">CB_setCookie</a></li><li><a href="global.html#CB_setDatum">CB_setDatum</a></li><li><a href="global.html#CB_sizeof">CB_sizeof</a></li><li><a href="global.html#CB_sizeOf">CB_sizeOf</a></li><li><a href="global.html#CB_stringifyJSON">CB_stringifyJSON</a></li><li><a href="global.html#CB_symmetricCall">CB_symmetricCall</a></li><li><a href="global.html#CB_symmetricCallClear">CB_symmetricCallClear</a></li><li><a href="global.html#CB_this">CB_this</a></li><li><a href="global.html#CB_trim">CB_trim</a></li><li><a href="global.html#CB_VERSION">CB_VERSION</a></li>
51 </ul>
52 </li>
53
54 </ul>
55
56 <div class="col-sm-3 col-md-3">
57 <form class="navbar-form" role="search">
58 <div class="input-group">
59 <input type="text" class="form-control" placeholder="Search" name="q" id="search-input">
60 <div class="input-group-btn">
61 <button class="btn btn-default" id="search-submit"><i class="glyphicon glyphicon-search"></i></button>
62 </div>
63 </div>
64 </form>
65 </div>
66
67 </div>
68
69</div>
70</div>
71
72
73<div class="container" id="toc-content" style="width:100%;">
74<div class="row" style="width:100%;">
75
76
77 <div class="col-md-8" style="width:85%;">
78
79 <div id="main">
80
81
82
83 <h1 class="page-title">Namespace: CB_Events</h1>
84
85<section>
86
87<header>
88
89 <h2>
90 CB_Events
91 </h2>
92
93
94</header>
95
96
97<article>
98 <div class="container-overview">
99
100
101 <div class="description"><p>Static class to manage events. It will return itself if it is tried to be instantiated.</p></div>
102
103
104
105<dl class="details">
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
136 <dd class="tag-source">
137 <ul class="dummy">
138 <li>
139 <a href="CrossBase_general_CB_Events.js.html">CrossBase/general/CB_Events.js</a>,
140 <a href="CrossBase_general_CB_Events.js.html#sunlight-1-line-12">line 12</a>
141 </li>
142 </ul>
143 </dd>
144
145
146
147
148
149
150
151</dl>
152
153
154
155
156 </div>
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171 <h3 class="subsection-title">Methods</h3>
172
173 <dl>
174
175<hr>
176<dt>
177 <h4 class="name" id=".add"><span class="type-signature">&lt;static> </span>add<span class="signature">()</span><span class="type-signature"></span></h4>
178
179
180</dt>
181<dd>
182
183
184 <div class="description">
185 <p>Alias for <a href="CB_Events.html#.on"><code>CB_Events.on</code></a>.</p>
186 </div>
187
188
189
190
191
192
193
194
195
196
197<dl class="details">
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
228 <dd class="tag-source">
229 <ul class="dummy">
230 <li>
231 <a href="CrossBase_general_CB_Events.js.html">CrossBase/general/CB_Events.js</a>,
232 <a href="CrossBase_general_CB_Events.js.html#sunlight-1-line-148">line 148</a>
233 </li>
234 </ul>
235 </dd>
236
237
238
239
240
241 <dt class="tag-see method-doc-label method-doc-details-label">See:</dt>
242 <dd class="tag-see">
243 <ul>
244 <li><a href="CB_Events.html#.on"><code>CB_Events.on</code></a></li>
245 </ul>
246 </dd>
247
248
249
250</dl>
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266</dd>
267
268
269
270<hr>
271<dt>
272 <h4 class="name" id=".executeByName"><span class="type-signature">&lt;static> </span>executeByName<span class="signature">(eventTarget, eventName [, e] [, returnOnNothingExecuted])</span><span class="type-signature"> &rarr; {boolean}</span></h4>
273
274
275</dt>
276<dd>
277
278
279 <div class="description">
280 <p>Executes all event listeners for an specific event from a node (target).</p>
281 </div>
282
283
284
285
286
287
288
289
290 <h5>Parameters:</h5>
291
292
293<table class="params table table-striped">
294 <thead>
295 <tr>
296
297 <th style="width:12%; min-width:110px;">Name</th>
298
299
300 <th style="width:12%; min-width:110px;">Type</th>
301
302
303 <th style="width:12%; min-width:110px;">Argument</th>
304
305
306
307
308 <th class="last" style="min-width:310px;">Description</th>
309 </tr>
310 </thead>
311
312 <tbody>
313
314
315 <tr>
316
317 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>eventTarget</code></td>
318
319
320 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
321
322
323<span class="param-type">Object</span>
324
325
326
327
328 </td>
329
330
331 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
332
333
334
335
336
337 </td>
338
339
340
341
342 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The target whose event listeners we want to execute. It will be the value of &quot;this&quot; for every call to each listener.</p></td>
343 </tr>
344
345
346
347 <tr>
348
349 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>eventName</code></td>
350
351
352 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
353
354
355<span class="param-type">string</span>
356
357
358
359
360 </td>
361
362
363 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
364
365
366
367
368
369 </td>
370
371
372
373
374 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The name of the event whose event listeners we want to execute.</p></td>
375 </tr>
376
377
378
379 <tr>
380
381 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>e</code></td>
382
383
384 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
385
386
387<span class="param-type">Event</span>
388
389
390
391
392 </td>
393
394
395 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
396
397 &lt;optional><br>
398
399
400
401
402
403 </td>
404
405
406
407
408 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Event object that will be passed as the first and unique parameter for every call to each listener.</p></td>
409 </tr>
410
411
412
413 <tr>
414
415 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>returnOnNothingExecuted</code></td>
416
417
418 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
419
420
421<span class="param-type">*</span>
422
423
424
425
426 </td>
427
428
429 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
430
431 &lt;optional><br>
432
433
434
435
436
437 </td>
438
439
440
441
442 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The value that will be returned by the function if nothing is executed.</p></td>
443 </tr>
444
445
446 </tbody>
447</table>
448
449
450
451
452<dl class="details">
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
483 <dd class="tag-source">
484 <ul class="dummy">
485 <li>
486 <a href="CrossBase_general_CB_Events.js.html">CrossBase/general/CB_Events.js</a>,
487 <a href="CrossBase_general_CB_Events.js.html#sunlight-1-line-364">line 364</a>
488 </li>
489 </ul>
490 </dd>
491
492
493
494
495
496
497
498</dl>
499
500
501
502
503
504
505
506
507
508
509
510
511
512 <h5>Returns:</h5>
513
514
515<div class="param-desc">
516 <p>Returns the result of doing the AND operator of all return values of each listener executed. If only one listener is executed, it will return the result of doing the AND operator with its returning value and &quot;true&quot;. Returns the value of the &quot;returnOnNothingExecuted&quot; parameter if nothing is executed.</p>
517</div>
518
519
520
521<dl>
522 <dt>
523 Type
524 </dt>
525 <dd>
526
527<span class="param-type">boolean</span>
528
529
530
531 </dd>
532</dl>
533
534
535
536
537
538</dd>
539
540
541
542<hr>
543<dt>
544 <h4 class="name" id=".getAll"><span class="type-signature">&lt;static> </span>getAll<span class="signature">()</span><span class="type-signature"> &rarr; {array}</span></h4>
545
546
547</dt>
548<dd>
549
550
551 <div class="description">
552 <p>Returns all stored event handlers (if any).</p>
553 </div>
554
555
556
557
558
559
560
561
562
563
564<dl class="details">
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
595 <dd class="tag-source">
596 <ul class="dummy">
597 <li>
598 <a href="CrossBase_general_CB_Events.js.html">CrossBase/general/CB_Events.js</a>,
599 <a href="CrossBase_general_CB_Events.js.html#sunlight-1-line-426">line 426</a>
600 </li>
601 </ul>
602 </dd>
603
604
605
606
607
608
609
610</dl>
611
612
613
614
615
616
617
618
619
620
621
622
623
624 <h5>Returns:</h5>
625
626
627<div class="param-desc">
628 <p>Returns an array of <a href="CB_Events.html#.EVENT_HANDLER"><code>CB_Events.EVENT_HANDLER</code></a> objects.</p>
629</div>
630
631
632
633<dl>
634 <dt>
635 Type
636 </dt>
637 <dd>
638
639<span class="param-type">array</span>
640
641
642
643 </dd>
644</dl>
645
646
647
648
649
650</dd>
651
652
653
654<hr>
655<dt>
656 <h4 class="name" id=".getByName"><span class="type-signature">&lt;static> </span>getByName<span class="signature">(eventTarget, eventName [, onlyWithFunction])</span><span class="type-signature"> &rarr; {array}</span></h4>
657
658
659</dt>
660<dd>
661
662
663 <div class="description">
664 <p>Returns all handlers for an specific event from a node (target), if any.</p>
665 </div>
666
667
668
669
670
671
672
673
674 <h5>Parameters:</h5>
675
676
677<table class="params table table-striped">
678 <thead>
679 <tr>
680
681 <th style="width:12%; min-width:110px;">Name</th>
682
683
684 <th style="width:12%; min-width:110px;">Type</th>
685
686
687 <th style="width:12%; min-width:110px;">Argument</th>
688
689
690
691 <th style="width:12%; min-width:110px;">Default</th>
692
693
694 <th class="last" style="min-width:310px;">Description</th>
695 </tr>
696 </thead>
697
698 <tbody>
699
700
701 <tr>
702
703 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>eventTarget</code></td>
704
705
706 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
707
708
709<span class="param-type">Object</span>
710
711
712
713
714 </td>
715
716
717 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
718
719
720
721
722
723 </td>
724
725
726
727 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
728
729 </td>
730
731
732 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The target whose event listeners we want to get.</p></td>
733 </tr>
734
735
736
737 <tr>
738
739 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>eventName</code></td>
740
741
742 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
743
744
745<span class="param-type">string</span>
746
747
748
749
750 </td>
751
752
753 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
754
755
756
757
758
759 </td>
760
761
762
763 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
764
765 </td>
766
767
768 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The name of the event whose event listeners we want to get.</p></td>
769 </tr>
770
771
772
773 <tr>
774
775 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>onlyWithFunction</code></td>
776
777
778 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
779
780
781<span class="param-type">boolean</span>
782
783
784
785
786 </td>
787
788
789 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
790
791 &lt;optional><br>
792
793
794
795
796
797 </td>
798
799
800
801 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
802
803 false
804
805 </td>
806
807
808 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Defines whether to return only the handlers which have a function as the listener.</p></td>
809 </tr>
810
811
812 </tbody>
813</table>
814
815
816
817
818<dl class="details">
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
849 <dd class="tag-source">
850 <ul class="dummy">
851 <li>
852 <a href="CrossBase_general_CB_Events.js.html">CrossBase/general/CB_Events.js</a>,
853 <a href="CrossBase_general_CB_Events.js.html#sunlight-1-line-398">line 398</a>
854 </li>
855 </ul>
856 </dd>
857
858
859
860
861
862
863
864</dl>
865
866
867
868
869
870
871
872
873
874
875
876
877
878 <h5>Returns:</h5>
879
880
881<div class="param-desc">
882 <p>Returns an array of <a href="CB_Events.html#.EVENT_HANDLER"><code>CB_Events.EVENT_HANDLER</code></a> objects.</p>
883</div>
884
885
886
887<dl>
888 <dt>
889 Type
890 </dt>
891 <dd>
892
893<span class="param-type">array</span>
894
895
896
897 </dd>
898</dl>
899
900
901
902
903
904</dd>
905
906
907
908<hr>
909<dt>
910 <h4 class="name" id=".getType"><span class="type-signature">&lt;static> </span>getType<span class="signature">(e)</span><span class="type-signature"> &rarr; {string}</span></h4>
911
912
913</dt>
914<dd>
915
916
917 <div class="description">
918 <p>Returns the type of an event, if any (otherwise, returns an empty string).</p>
919 </div>
920
921
922
923
924
925
926
927
928 <h5>Parameters:</h5>
929
930
931<table class="params table table-striped">
932 <thead>
933 <tr>
934
935 <th style="width:12%; min-width:110px;">Name</th>
936
937
938 <th style="width:12%; min-width:110px;">Type</th>
939
940
941
942
943
944 <th class="last" style="min-width:310px;">Description</th>
945 </tr>
946 </thead>
947
948 <tbody>
949
950
951 <tr>
952
953 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>e</code></td>
954
955
956 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
957
958
959<span class="param-type">Event</span>
960
961
962
963
964 </td>
965
966
967
968
969
970 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Event object.</p></td>
971 </tr>
972
973
974 </tbody>
975</table>
976
977
978
979
980<dl class="details">
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1011 <dd class="tag-source">
1012 <ul class="dummy">
1013 <li>
1014 <a href="CrossBase_general_CB_Events.js.html">CrossBase/general/CB_Events.js</a>,
1015 <a href="CrossBase_general_CB_Events.js.html#sunlight-1-line-109">line 109</a>
1016 </li>
1017 </ul>
1018 </dd>
1019
1020
1021
1022
1023
1024
1025
1026</dl>
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040 <h5>Returns:</h5>
1041
1042
1043
1044
1045<dl>
1046 <dt>
1047 Type
1048 </dt>
1049 <dd>
1050
1051<span class="param-type">string</span>
1052
1053
1054
1055 </dd>
1056</dl>
1057
1058
1059
1060
1061
1062</dd>
1063
1064
1065
1066<hr>
1067<dt>
1068 <h4 class="name" id=".normalize"><span class="type-signature">&lt;static> </span>normalize<span class="signature">(e)</span><span class="type-signature"> &rarr; {Event}</span></h4>
1069
1070
1071</dt>
1072<dd>
1073
1074
1075 <div class="description">
1076 <p>Gets the right event object for the current web client and normalizes it attaching to it some methods and properties if they were not present (as preventDefault, stopPropagation, target, etc.). The new attached methods and properties may include polyfills, etc.</p>
1077 </div>
1078
1079
1080
1081
1082
1083
1084
1085
1086 <h5>Parameters:</h5>
1087
1088
1089<table class="params table table-striped">
1090 <thead>
1091 <tr>
1092
1093 <th style="width:12%; min-width:110px;">Name</th>
1094
1095
1096 <th style="width:12%; min-width:110px;">Type</th>
1097
1098
1099
1100
1101
1102 <th class="last" style="min-width:310px;">Description</th>
1103 </tr>
1104 </thead>
1105
1106 <tbody>
1107
1108
1109 <tr>
1110
1111 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>e</code></td>
1112
1113
1114 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1115
1116
1117<span class="param-type">Event</span>
1118
1119
1120
1121
1122 </td>
1123
1124
1125
1126
1127
1128 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Event object. If not provided, it will use the value of &quot;event&quot;, &quot;window.event&quot;, &quot;Event&quot; or an empty object (&quot;{}&quot;).</p></td>
1129 </tr>
1130
1131
1132 </tbody>
1133</table>
1134
1135
1136
1137
1138<dl class="details">
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1169 <dd class="tag-source">
1170 <ul class="dummy">
1171 <li>
1172 <a href="CrossBase_general_CB_Events.js.html">CrossBase/general/CB_Events.js</a>,
1173 <a href="CrossBase_general_CB_Events.js.html#sunlight-1-line-38">line 38</a>
1174 </li>
1175 </ul>
1176 </dd>
1177
1178
1179
1180
1181
1182
1183
1184</dl>
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198 <h5>Returns:</h5>
1199
1200
1201<div class="param-desc">
1202 <p>Returns the event object normalized.</p>
1203</div>
1204
1205
1206
1207<dl>
1208 <dt>
1209 Type
1210 </dt>
1211 <dd>
1212
1213<span class="param-type">Event</span>
1214
1215
1216
1217 </dd>
1218</dl>
1219
1220
1221
1222
1223
1224</dd>
1225
1226
1227
1228<hr>
1229<dt>
1230 <h4 class="name" id=".on"><span class="type-signature">&lt;static> </span>on<span class="signature">(eventTarget, eventName, eventFunction [, useCapture] [, keepOldEventFunction] [, erasable])</span><span class="type-signature"></span></h4>
1231
1232
1233</dt>
1234<dd>
1235
1236
1237 <div class="description">
1238 <p>Adds an event listener.</p>
1239 </div>
1240
1241
1242
1243
1244
1245
1246
1247
1248 <h5>Parameters:</h5>
1249
1250
1251<table class="params table table-striped">
1252 <thead>
1253 <tr>
1254
1255 <th style="width:12%; min-width:110px;">Name</th>
1256
1257
1258 <th style="width:12%; min-width:110px;">Type</th>
1259
1260
1261 <th style="width:12%; min-width:110px;">Argument</th>
1262
1263
1264
1265 <th style="width:12%; min-width:110px;">Default</th>
1266
1267
1268 <th class="last" style="min-width:310px;">Description</th>
1269 </tr>
1270 </thead>
1271
1272 <tbody>
1273
1274
1275 <tr>
1276
1277 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>eventTarget</code></td>
1278
1279
1280 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1281
1282
1283<span class="param-type">Object</span>
1284
1285
1286
1287
1288 </td>
1289
1290
1291 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1292
1293
1294
1295
1296
1297 </td>
1298
1299
1300
1301 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1302
1303 </td>
1304
1305
1306 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The target where we want to attach the event listener.</p></td>
1307 </tr>
1308
1309
1310
1311 <tr>
1312
1313 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>eventName</code></td>
1314
1315
1316 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1317
1318
1319<span class="param-type">string</span>
1320
1321
1322
1323
1324 </td>
1325
1326
1327 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1328
1329
1330
1331
1332
1333 </td>
1334
1335
1336
1337 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1338
1339 </td>
1340
1341
1342 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The name of the event that we want to add.</p></td>
1343 </tr>
1344
1345
1346
1347 <tr>
1348
1349 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>eventFunction</code></td>
1350
1351
1352 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1353
1354
1355<span class="param-type">function</span>
1356
1357
1358
1359
1360 </td>
1361
1362
1363 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1364
1365
1366
1367
1368
1369 </td>
1370
1371
1372
1373 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1374
1375 </td>
1376
1377
1378 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The function (event listener) of the event that we want to add.</p></td>
1379 </tr>
1380
1381
1382
1383 <tr>
1384
1385 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>useCapture</code></td>
1386
1387
1388 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1389
1390
1391<span class="param-type">boolean</span>
1392
1393
1394
1395
1396 </td>
1397
1398
1399 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1400
1401 &lt;optional><br>
1402
1403
1404
1405
1406
1407 </td>
1408
1409
1410
1411 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1412
1413 false
1414
1415 </td>
1416
1417
1418 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Defines whether the event we want to add will use capture or not. This parameter will be effective only if the current client supports the <a href="https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener">addEventListener</a> method and will be used as its third parameter.</p></td>
1419 </tr>
1420
1421
1422
1423 <tr>
1424
1425 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>keepOldEventFunction</code></td>
1426
1427
1428 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1429
1430
1431<span class="param-type">boolean</span>
1432
1433
1434
1435
1436 </td>
1437
1438
1439 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1440
1441 &lt;optional><br>
1442
1443
1444
1445
1446
1447 </td>
1448
1449
1450
1451 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1452
1453 true
1454
1455 </td>
1456
1457
1458 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Defines whether we want to keep any possible previous event listener for the same target and event name or not.</p></td>
1459 </tr>
1460
1461
1462
1463 <tr>
1464
1465 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>erasable</code></td>
1466
1467
1468 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1469
1470
1471<span class="param-type">boolean</span>
1472
1473
1474
1475
1476 </td>
1477
1478
1479 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1480
1481 &lt;optional><br>
1482
1483
1484
1485
1486
1487 </td>
1488
1489
1490
1491 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1492
1493 true
1494
1495 </td>
1496
1497
1498 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Defines whether the event listener will be erasable by <a href="CB_Events.html#.removeAll"><code>CB_Events.removeAll</code></a> or <a href="CB_Events.html#.removeByName"><code>CB_Events.removeByName</code></a> functions later or not (it will always be erasable if we force delete).</p></td>
1499 </tr>
1500
1501
1502 </tbody>
1503</table>
1504
1505
1506
1507
1508<dl class="details">
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1539 <dd class="tag-source">
1540 <ul class="dummy">
1541 <li>
1542 <a href="CrossBase_general_CB_Events.js.html">CrossBase/general/CB_Events.js</a>,
1543 <a href="CrossBase_general_CB_Events.js.html#sunlight-1-line-164">line 164</a>
1544 </li>
1545 </ul>
1546 </dd>
1547
1548
1549
1550
1551
1552
1553
1554 <dt class="tag-todo method-doc-label method-doc-details-label">To Do:</dt>
1555 <dd class="tag-todo">
1556 <ul>
1557 <li>Try to simulate "useCapture" when the "addEventListener" method is not available.</li>
1558 </ul>
1559 </dd>
1560
1561</dl>
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577</dd>
1578
1579
1580
1581<hr>
1582<dt>
1583 <h4 class="name" id=".remove"><span class="type-signature">&lt;static> </span>remove<span class="signature">(eventTarget, eventName, eventFunction [, useCapture])</span><span class="type-signature"></span></h4>
1584
1585
1586</dt>
1587<dd>
1588
1589
1590 <div class="description">
1591 <p>Removes an event listener (even if it is not erasable).</p>
1592 </div>
1593
1594
1595
1596
1597
1598
1599
1600
1601 <h5>Parameters:</h5>
1602
1603
1604<table class="params table table-striped">
1605 <thead>
1606 <tr>
1607
1608 <th style="width:12%; min-width:110px;">Name</th>
1609
1610
1611 <th style="width:12%; min-width:110px;">Type</th>
1612
1613
1614 <th style="width:12%; min-width:110px;">Argument</th>
1615
1616
1617
1618 <th style="width:12%; min-width:110px;">Default</th>
1619
1620
1621 <th class="last" style="min-width:310px;">Description</th>
1622 </tr>
1623 </thead>
1624
1625 <tbody>
1626
1627
1628 <tr>
1629
1630 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>eventTarget</code></td>
1631
1632
1633 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1634
1635
1636<span class="param-type">Object</span>
1637
1638
1639
1640
1641 </td>
1642
1643
1644 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1645
1646
1647
1648
1649
1650 </td>
1651
1652
1653
1654 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1655
1656 </td>
1657
1658
1659 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The target whose event listener we want to remove.</p></td>
1660 </tr>
1661
1662
1663
1664 <tr>
1665
1666 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>eventName</code></td>
1667
1668
1669 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1670
1671
1672<span class="param-type">string</span>
1673
1674
1675
1676
1677 </td>
1678
1679
1680 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1681
1682
1683
1684
1685
1686 </td>
1687
1688
1689
1690 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1691
1692 </td>
1693
1694
1695 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The name of the event that we want to remove.</p></td>
1696 </tr>
1697
1698
1699
1700 <tr>
1701
1702 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>eventFunction</code></td>
1703
1704
1705 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1706
1707
1708<span class="param-type">function</span>
1709
1710
1711
1712
1713 </td>
1714
1715
1716 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1717
1718
1719
1720
1721
1722 </td>
1723
1724
1725
1726 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1727
1728 </td>
1729
1730
1731 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The function (event listener) of the event that we want to remove.</p></td>
1732 </tr>
1733
1734
1735
1736 <tr>
1737
1738 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>useCapture</code></td>
1739
1740
1741 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1742
1743
1744<span class="param-type">boolean</span>
1745
1746
1747
1748
1749 </td>
1750
1751
1752 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1753
1754 &lt;optional><br>
1755
1756
1757
1758
1759
1760 </td>
1761
1762
1763
1764 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1765
1766 false
1767
1768 </td>
1769
1770
1771 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>Defines whether the event we want to remove was defined to use capture or not.</p></td>
1772 </tr>
1773
1774
1775 </tbody>
1776</table>
1777
1778
1779
1780
1781<dl class="details">
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1812 <dd class="tag-source">
1813 <ul class="dummy">
1814 <li>
1815 <a href="CrossBase_general_CB_Events.js.html">CrossBase/general/CB_Events.js</a>,
1816 <a href="CrossBase_general_CB_Events.js.html#sunlight-1-line-125">line 125</a>
1817 </li>
1818 </ul>
1819 </dd>
1820
1821
1822
1823
1824
1825
1826
1827</dl>
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843</dd>
1844
1845
1846
1847<hr>
1848<dt>
1849 <h4 class="name" id=".removeAll"><span class="type-signature">&lt;static> </span>removeAll<span class="signature">( [forceDelete])</span><span class="type-signature"></span></h4>
1850
1851
1852</dt>
1853<dd>
1854
1855
1856 <div class="description">
1857 <p>Removes all event listeners.</p>
1858 </div>
1859
1860
1861
1862
1863
1864
1865
1866
1867 <h5>Parameters:</h5>
1868
1869
1870<table class="params table table-striped">
1871 <thead>
1872 <tr>
1873
1874 <th style="width:12%; min-width:110px;">Name</th>
1875
1876
1877 <th style="width:12%; min-width:110px;">Type</th>
1878
1879
1880 <th style="width:12%; min-width:110px;">Argument</th>
1881
1882
1883
1884 <th style="width:12%; min-width:110px;">Default</th>
1885
1886
1887 <th class="last" style="min-width:310px;">Description</th>
1888 </tr>
1889 </thead>
1890
1891 <tbody>
1892
1893
1894 <tr>
1895
1896 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>forceDelete</code></td>
1897
1898
1899 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1900
1901
1902<span class="param-type">boolean</span>
1903
1904
1905
1906
1907 </td>
1908
1909
1910 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1911
1912 &lt;optional><br>
1913
1914
1915
1916
1917
1918 </td>
1919
1920
1921
1922 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
1923
1924 false
1925
1926 </td>
1927
1928
1929 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will remove all event listeners (even the ones which were added as not erasable).</p></td>
1930 </tr>
1931
1932
1933 </tbody>
1934</table>
1935
1936
1937
1938
1939<dl class="details">
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
1970 <dd class="tag-source">
1971 <ul class="dummy">
1972 <li>
1973 <a href="CrossBase_general_CB_Events.js.html">CrossBase/general/CB_Events.js</a>,
1974 <a href="CrossBase_general_CB_Events.js.html#sunlight-1-line-340">line 340</a>
1975 </li>
1976 </ul>
1977 </dd>
1978
1979
1980
1981
1982
1983
1984
1985</dl>
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001</dd>
2002
2003
2004
2005<hr>
2006<dt>
2007 <h4 class="name" id=".removeByName"><span class="type-signature">&lt;static> </span>removeByName<span class="signature">(eventTarget, eventName [, forceDelete])</span><span class="type-signature"></span></h4>
2008
2009
2010</dt>
2011<dd>
2012
2013
2014 <div class="description">
2015 <p>Deletes all handlers for an specific event from a node (target).</p>
2016 </div>
2017
2018
2019
2020
2021
2022
2023
2024
2025 <h5>Parameters:</h5>
2026
2027
2028<table class="params table table-striped">
2029 <thead>
2030 <tr>
2031
2032 <th style="width:12%; min-width:110px;">Name</th>
2033
2034
2035 <th style="width:12%; min-width:110px;">Type</th>
2036
2037
2038 <th style="width:12%; min-width:110px;">Argument</th>
2039
2040
2041
2042 <th style="width:12%; min-width:110px;">Default</th>
2043
2044
2045 <th class="last" style="min-width:310px;">Description</th>
2046 </tr>
2047 </thead>
2048
2049 <tbody>
2050
2051
2052 <tr>
2053
2054 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>eventTarget</code></td>
2055
2056
2057 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2058
2059
2060<span class="param-type">Object</span>
2061
2062
2063
2064
2065 </td>
2066
2067
2068 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2069
2070
2071
2072
2073
2074 </td>
2075
2076
2077
2078 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2079
2080 </td>
2081
2082
2083 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The target whose event listeners we want to remove.</p></td>
2084 </tr>
2085
2086
2087
2088 <tr>
2089
2090 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>eventName</code></td>
2091
2092
2093 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2094
2095
2096<span class="param-type">string</span>
2097
2098
2099
2100
2101 </td>
2102
2103
2104 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2105
2106
2107
2108
2109
2110 </td>
2111
2112
2113
2114 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2115
2116 </td>
2117
2118
2119 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>The name of the event whose event listeners we want to remove.</p></td>
2120 </tr>
2121
2122
2123
2124 <tr>
2125
2126 <td class="name" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><code>forceDelete</code></td>
2127
2128
2129 <td class="type" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2130
2131
2132<span class="param-type">boolean</span>
2133
2134
2135
2136
2137 </td>
2138
2139
2140 <td class="attributes" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2141
2142 &lt;optional><br>
2143
2144
2145
2146
2147
2148 </td>
2149
2150
2151
2152 <td class="default" style="width:12%; min-width:110px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;">
2153
2154 false
2155
2156 </td>
2157
2158
2159 <td class="description last" style="min-width:310px; overflow-wrap:break-word; word-wrap:break-word; word-break:break-word; line-break:strict; hyphens:none; -webkit-hyphens:none; -moz-hyphens:none;"><p>If it is set to true, it will remove any listener (even the ones which were added as not erasable).</p></td>
2160 </tr>
2161
2162
2163 </tbody>
2164</table>
2165
2166
2167
2168
2169<dl class="details">
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
2200 <dd class="tag-source">
2201 <ul class="dummy">
2202 <li>
2203 <a href="CrossBase_general_CB_Events.js.html">CrossBase/general/CB_Events.js</a>,
2204 <a href="CrossBase_general_CB_Events.js.html#sunlight-1-line-313">line 313</a>
2205 </li>
2206 </ul>
2207 </dd>
2208
2209
2210
2211
2212
2213
2214
2215</dl>
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231</dd>
2232
2233 </dl>
2234
2235
2236
2237 <h3 class="subsection-title">Type Definitions</h3>
2238
2239 <dl>
2240
2241<hr>
2242<dt class="name" id=".EVENT_HANDLER">
2243 <h4 id=".EVENT_HANDLER">EVENT_HANDLER</h4>
2244
2245
2246</dt>
2247<dd>
2248
2249 <div class="description">
2250 <p>Object that contains an event handler.</p>
2251 </div>
2252
2253
2254
2255 <h5>Type:</h5>
2256 <ul>
2257 <li>
2258
2259<span class="param-type">Object</span>
2260
2261
2262
2263 </li>
2264 </ul>
2265
2266
2267
2268<dl class="details">
2269
2270
2271 <h5 class="subsection-title">Properties:</h5>
2272
2273 <dl>
2274
2275<table class="props table table-striped">
2276 <thead>
2277 <tr>
2278
2279 <th>Name</th>
2280
2281
2282 <th>Type</th>
2283
2284
2285
2286
2287
2288 <th class="last">Description</th>
2289 </tr>
2290 </thead>
2291
2292 <tbody>
2293
2294
2295 <tr>
2296
2297 <td class="name"><code>eventTarget</code></td>
2298
2299
2300 <td class="type">
2301
2302
2303<span class="param-type">Object</span>
2304
2305
2306
2307
2308 </td>
2309
2310
2311
2312
2313
2314 <td class="description last"><p>The target of the event.</p></td>
2315 </tr>
2316
2317
2318
2319 <tr>
2320
2321 <td class="name"><code>eventName</code></td>
2322
2323
2324 <td class="type">
2325
2326
2327<span class="param-type">string</span>
2328
2329
2330
2331
2332 </td>
2333
2334
2335
2336
2337
2338 <td class="description last"><p>The name of the event.</p></td>
2339 </tr>
2340
2341
2342
2343 <tr>
2344
2345 <td class="name"><code>eventFunction</code></td>
2346
2347
2348 <td class="type">
2349
2350
2351<span class="param-type">function</span>
2352
2353
2354
2355
2356 </td>
2357
2358
2359
2360
2361
2362 <td class="description last"><p>The event listener.</p></td>
2363 </tr>
2364
2365
2366
2367 <tr>
2368
2369 <td class="name"><code>useCapture</code></td>
2370
2371
2372 <td class="type">
2373
2374
2375<span class="param-type">boolean</span>
2376
2377
2378
2379
2380 </td>
2381
2382
2383
2384
2385
2386 <td class="description last"><p>Defines whether the event listener was defined to use capture or not.</p></td>
2387 </tr>
2388
2389
2390
2391 <tr>
2392
2393 <td class="name"><code>erasable</code></td>
2394
2395
2396 <td class="type">
2397
2398
2399<span class="param-type">boolean</span>
2400
2401
2402
2403
2404 </td>
2405
2406
2407
2408
2409
2410 <td class="description last"><p>Defines whether the event handler is erasable (without forcing delete) or not.</p></td>
2411 </tr>
2412
2413
2414 </tbody>
2415</table>
2416</dl>
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447 <dt class="tag-source method-doc-label method-doc-details-label">Source:</dt>
2448 <dd class="tag-source">
2449 <ul class="dummy">
2450 <li>
2451 <a href="CrossBase_general_CB_Events.js.html">CrossBase/general/CB_Events.js</a>,
2452 <a href="CrossBase_general_CB_Events.js.html#sunlight-1-line-254">line 254</a>
2453 </li>
2454 </ul>
2455 </dd>
2456
2457
2458
2459
2460
2461
2462
2463</dl>
2464
2465
2466
2467</dd>
2468
2469 </dl>
2470
2471
2472
2473</article>
2474
2475</section>
2476
2477
2478
2479
2480 </div>
2481 </div>
2482
2483 <div class="clearfix"></div>
2484
2485
2486 <div class="col-md-3">
2487 <div id="toc" class="col-md-3 hidden-xs hidden-sm hidden-md"></div>
2488 </div>
2489
2490
2491</div>
2492</div>
2493
2494
2495 <div class="modal fade" id="searchResults">
2496 <div class="modal-dialog">
2497 <div class="modal-content">
2498 <div class="modal-header">
2499 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
2500 <h4 class="modal-title">Search results</h4>
2501 </div>
2502 <div class="modal-body"></div>
2503 <div class="modal-footer">
2504 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
2505 </div>
2506 </div><!-- /.modal-content -->
2507 </div><!-- /.modal-dialog -->
2508 </div>
2509
2510
2511<footer>
2512
2513
2514 <span class="copyright">
2515 <a href="printable/" target="_blank">See a more printer-friendly version</a><hr /><span style="color:#000000">© <address style="display:inline; font-style:normal;"><a href="https://crossbrowdy.com/" target="_blank">CrossBrowdy</a> API documentation</address> by <a href="https://joanalbamaldonado.com/" target="_blank">Joan Alba Maldonado</a> - <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank">Creative Commons Attribution 4.0 International</a><br />DocStrap Copyright © 2012-2015 The contributors to the JSDoc3 and DocStrap projects.</span>
2516 </span>
2517
2518<span class="jsdoc-message">
2519 Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a>
2520
2521 on Mon Feb 3rd 2020
2522
2523 using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
2524</span>
2525</footer>
2526
2527<script src="scripts/docstrap.lib.js"></script>
2528<script src="scripts/toc.js"></script>
2529
2530 <script type="text/javascript" src="scripts/fulltext-search-ui.js"></script>
2531
2532
2533<script>
2534$( function () {
2535 $( "[id*='$']" ).each( function () {
2536 var $this = $( this );
2537
2538 $this.attr( "id", $this.attr( "id" ).replace( "$", "__" ) );
2539 } );
2540
2541 $( ".tutorial-section pre, .readme-section pre, pre.prettyprint.source" ).each( function () {
2542 var $this = $( this );
2543
2544 var example = $this.find( "code" );
2545 exampleText = example.html();
2546 var lang = /{@lang (.*?)}/.exec( exampleText );
2547 if ( lang && lang[1] ) {
2548 exampleText = exampleText.replace( lang[0], "" );
2549 example.html( exampleText );
2550 lang = lang[1];
2551 } else {
2552 var langClassMatch = example.parent()[0].className.match(/lang\-(\S+)/);
2553 lang = langClassMatch ? langClassMatch[1] : "javascript";
2554 }
2555
2556 if ( lang ) {
2557
2558 $this
2559 .addClass( "sunlight-highlight-" + lang )
2560 .addClass( "linenums" )
2561 .html( example.html() );
2562
2563 }
2564 } );
2565
2566 Sunlight.highlightAll( {
2567 lineNumbers : true,
2568 showMenu : true,
2569 enableDoclinks : true
2570 } );
2571
2572 $.catchAnchorLinks( {
2573 navbarOffset: 10
2574 } );
2575 $( "#toc" ).toc( {
2576 anchorName : function ( i, heading, prefix ) {
2577 return $( heading ).attr( "id" ) || ( prefix + i );
2578 },
2579 selectors : "#toc-content h1,#toc-content h2,#toc-content h3,#toc-content h4",
2580 showAndHide : false,
2581 smoothScrolling: true
2582 } );
2583
2584 $( "#main span[id^='toc']" ).addClass( "toc-shim" );
2585 $( '.dropdown-toggle' ).dropdown();
2586
2587 $( "table" ).each( function () {
2588 var $this = $( this );
2589 $this.addClass('table');
2590 } );
2591
2592} );
2593</script>
2594
2595
2596
2597<!--Navigation and Symbol Display-->
2598
2599<script>
2600 $( function () {
2601 $( '#main' ).localScroll( {
2602 offset : { top : 60 } //offset by the height of your header (give or take a few px, see what works for you)
2603 } );
2604 $( "dt.name" ).each( function () {
2605 var $this = $( this ).find("h4");
2606 var icon = $( "<i/>" ).addClass( "icon-plus-sign" ).addClass( "pull-right" ).addClass( "icon-white" );
2607 var dt = $(this);
2608 var children = dt.next( "dd" );
2609
2610 dt.prepend( icon ).css( {cursor : "pointer"} );
2611 dt.addClass( "member-collapsed" ).addClass( "member" );
2612
2613
2614 children.hide();
2615
2616 dt.children().on( "click", function () {
2617 children = dt.next( "dd" );
2618 children.slideToggle( "fast", function () {
2619
2620 if ( children.is( ":visible" ) ) {
2621 icon.addClass( "icon-minus-sign" ).removeClass( "icon-plus-sign" ).removeClass( "icon-white" );
2622 dt.addClass( "member-open" ).animate( "member-collapsed" );
2623 } else {
2624 icon.addClass( "icon-plus-sign" ).removeClass( "icon-minus-sign" ).addClass( "icon-white" );
2625 dt.addClass( "member-collapsed" ).removeClass( "member-open" );
2626 }
2627 } );
2628 } );
2629
2630 } );
2631 } );
2632</script>
2633
2634
2635<!--Google Analytics-->
2636
2637
2638
2639 <script type="text/javascript">
2640 $(document).ready(function() {
2641 SearcherDisplay.init();
2642 });
2643 </script>
2644
2645
2646</body>
2647</html>
\No newline at end of file