Commit 693af00d authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Removed Array.prototype.forEach - used no more.

Instead we are using Ext.Array.forEach.
parent 354787e0
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
// Bunch of global functions and variables

if (!Array.prototype.forEach) {
    Array.prototype.forEach = function(fun /*, thisp*/) {
        var len = this.length;
        if (typeof fun != "function") {
            throw new TypeError();
        }

        var thisp = arguments[1];
        for (var i = 0; i < len; i++) {
            if (i in this) {
                fun.call(thisp, this[i], i, this);
            }
        }
    };
}

var classCache = {};
var getDocClass = function(cls, noHistory) {
    var member,