dist/regular/loose/dejavu.js
function interfaceDescendantOf(interf1, interf2) {
        var x,
            parents = interf1[$interface].parents;

        for (x = parents.length - 1; x >= 0; x -= 1) {
            if (parents[x] === interf2) {
                return true;
            }
            if (interfaceDescendantOf(interf1, parents[x])) {
                return true;
            }
        }

        return false;
    }
function interfaceDescendantOf(interf1, interf2) {
        var x,
            parents = interf1[$interface].parents;

        for (x = parents.length - 1; x >= 0; x -= 1) {
            if (parents[x] === interf2) {
                return true;
            }
            if (interfaceDescendantOf(interf1, parents[x])) {
                return true;
            }
        }

        return false;
    }
function interfaceDescendantOf ( interf1 , interf2 ) { var x , parents = interf1 [ $interface ] . parents ; for ( x = parents . length - 1 ; x >= 0 ; x -= 1 ) { if ( parents [ x ] === interf2 ) { return true ; } if ( interfaceDescendantOf ( interf1 , parents [ x ] ) ) { return true ; } } return false ; }
Check if an interface is descendant of another.

@param {Function} interf1 The interface to be checked
@param {Function} interf2 The interface to be expected as the ancestor

@return {Boolean} True if it's a descendant, false otherwise
Check if an interface is descendant of another .