SO: /js/full.js?v=e928303e8a68

by Pratik Bhonsle

HTML

http://meta.stackoverflow.com/content/js/full.js?v=e928303e8a68

JavaScript

'use strict';
(function (f) {
    function d() {}
    function h(b, i) {
        if (a) return i.indexOf(b);
        for (var j = i.length; j--;) if (i[j] === b) return j;
        return -1
    }
    var b = d.prototype,
        e = [],
        a = e.indexOf ? !0 : !1;
    b.getListeners = function (a) {
        var b = this._events || (this._events = {});
        return b[a] || (b[a] = [])
    };
    b.addListener = function (a, b) {
        var j = this.getListeners(a); - 1 === h(b, j) && j.push(b);
        return this
    };
    b.removeListener = function (a, b) {
        var j = this.getListeners(a),
            e = h(b, j); - 1 !== e && (j.splice(e, 1), 0 === j.length && (this._events[a] = null));
        return this
    };
    b.addListeners = function (a, b) {
        return this.manipulateListeners(!1, a, b)
    };
    b.removeListeners = function (a, b) {
        return this.manipulateListeners(!0, a, b)
    };
    b.manipulateListeners = function (a, b, j) {
        var e, g, c = a ? this.removeListener : this.addListener,
            a = a ? this.removeListeners : this.addListeners;
        if ("object" === typeof b) for (e in b) {
            if (b.hasOwnProperty(e) && (g = b[e])) "function" === typeof g ? c.call(this, e, g) : a.call(this, e, g)
        } else for (e = j.length; e--;) c.call(this, b, j[e]);
        return this
    };
    b.removeEvent = function (a) {
        a ? this._events[a] = null : this._events = null;
        return this
    };
    b.emitEvent = function (a, b) {
        for (var j = this.getListeners(a), d = j.length; d--;)!0 === j[d].apply(null, b || e) && this.removeListener(a, j[d]);
        return this
    };
    "function" === typeof define && define.amd ? define(function () {
        return d
    }) : f.EventEmitter = d
})(this);
StackExchange.realtime = function () {
    function f() {
        if (!(null == m || 1 != m.readyState)) for (var c = 0, a = u.length; c < a; c++) d("sending: " + u[c]), m.send(u[c])
    }
   ...