QfqEvents.js.html 3.22 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>JSDoc: Source: QfqEvents.js</title>

    <script src="scripts/prettify/prettify.js"></script>
    <script src="scripts/prettify/lang-css.js"></script>
    <!--[if lt IE 9]>
    <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
    <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>

<body>

<div id="main">

    <h1 class="page-title">Source: QfqEvents.js</h1>


    <section>
        <article>
            <pre class="prettyprint source linenums"><code>/**
                * @author Rafael Ostertag &lt;rafael.ostertag@math.uzh.ch>
                */

                /* global EventEmitter */
                /* global $ */

                /**
                * Qfq Namespace
                *
                * @namespace QfqNS
                */
                var QfqNS = QfqNS || {};

                (function (n) {
                'use strict';

                /**
                *
                * @type {{makePayload: Function, onMixin: Function}}
                *
                */
                n.EventEmitter = {
                makePayload: function (target, data, additionalArgs) {
                return [$.extend({},
                typeof additionalArgs === "object" ? additionalArgs : null,
                {
                target: target,
                data: data
                }
                )];
                },
                onMixin: function (event, func) {
                this.eventEmitter.addListener(event, func);
                }
                };

                })(QfqNS);</code></pre>
        </article>
    </section>


</div>

<nav>
    <h2><a href="index.html">Home</a></h2>

    <h3>Classes</h3>
    <ul>
        <li><a href="n.Alert.html">Alert</a></li>
        <li><a href="QfqNS.BSTabs.html">BSTabs</a></li>
        <li><a href="QfqNS.Element.Checkbox.html">Checkbox</a></li>
        <li><a href="QfqNS.Element.FormGroup.html">FormGroup</a></li>
        <li><a href="QfqNS.Element.Radio.html">Radio</a></li>
        <li><a href="QfqNS.Element.Select.html">Select</a></li>
        <li><a href="QfqNS.Element.Textual.html">Textual</a></li>
        <li><a href="QfqNS.FileDelete.html">FileDelete</a></li>
        <li><a href="QfqNS.FileUpload.html">FileUpload</a></li>
        <li><a href="QfqNS.Form.html">Form</a></li>
        <li><a href="QfqNS.PageState.html">PageState</a></li>
        <li><a href="QfqNS.QfqForm.html">QfqForm</a></li>
        <li><a href="QfqNS.QfqPage.html">QfqPage</a></li>
        <li><a href="QfqNS.QfqRecordList.html">QfqRecordList</a></li>
    </ul>
    <h3>Namespaces</h3>
    <ul>
        <li><a href="global.html#QfqNS">QfqNS</a></li>
        <li><a href="QfqNS.Element.html">Element</a></li>
        <li><a href="QfqNS.Helper.html">Helper</a></li>
    </ul>
    <h3><a href="global.html">Global</a></h3>
</nav>

<br class="clear">

<footer>
    Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Mon May 23 2016 12:28:24
    GMT+0200 (CEST)
</footer>

<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"></script>
</body>
</html>