code: function (pred) {
                  return function () {
                      var ancestor = dom.ancestor(sc, pred);
                      return !!ancestor && (ancestor === dom.ancestor(ec, pred));
                  };
              }
docs: makeIsOn: return isOn(pred) function