js/declare.js
function isInstanceOf(cls) {
        var i, l, bases = this.constructor._meta.bases;
        for (i = 0, l = bases.length; i < l; i += 1) {
            if (bases[i] === cls) {
                return true;
            }
        }
        return this instanceof cls;
    }
function isInstanceOf(cls) {
        var i, l, bases = this.constructor._meta.bases;
        for (i = 0, l = bases.length; i < l; i += 1) {
            if (bases[i] === cls) {
                return true;
            }
        }
        return this instanceof cls;
    }
function isInstanceOf ( cls ) { var i , l , bases = this . constructor . _meta . bases ; for ( i = 0 , l = bases . length ; i < l ; i += 1 ) { if ( bases [ i ] === cls ) { return true ; } } return this instanceof cls ; }
emulation of "instanceof"
emulation of instanceof