This project is archived and is in readonly mode.

#253 ✓resolved
Daniel Steigerwald

Contains methods for Moo

Reported by Daniel Steigerwald | July 23rd, 2008 @ 01:18 AM | in 2.0 (closed)

isIn: function(el) {
        return this[__contains]
            ? this != el && el[__contains](this)
            : !!(el[__compareDocumentPosition](this) & 16);
},
isInDOM: function() {
    return this.isIn(this.ownerDocument.html);
}

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Pages