dist/joint.nowrap.js
function(elementA, elementB) {

        var isPredecessor = false;
        this.search(elementA, function(element) {
            if (element === elementB && element !== elementA) {
                isPredecessor = true;
                return false;
            }
        }, { inbound: true });
        return isPredecessor;
    }
function(elementA, elementB) {

        var isPredecessor = false;
        this.search(elementA, function(element) {
            if (element === elementB && element !== elementA) {
                isPredecessor = true;
                return false;
            }
        }, { inbound: true });
        return isPredecessor;
    }
function ( elementA , elementB ) { var isPredecessor = false ; this . search ( elementA , function ( element ) { if ( element === elementB && element !== elementA ) { isPredecessor = true ; return false ; } } , { inbound : true } ) ; return isPredecessor ; }
Return `true` is `elementB` is a predecessor of `elementA`. Return `false` otherwise.
Return true is elementB is a predecessor of elementA . Return false otherwise .