code: function (e1, e2) {
        var d1 = e1.dom(), d2 = e2.dom();
        return d1 === d2 ? false : d1.contains(d2);
      }
docs: DOM contains() method returns true if e1===e2, we define our contains() to return false (a node does not contain itself).