Docs says that this methos "removes and returns node from a DOM tree.
This is technically just a convenience for swapDOM(node, null).".
Obviously, it returns null, because swapDOM() does so, so I rewrote
removeElement() to match documentation (code has taken from 1.2
version, but in latest 1.3.1 it's the same):

MochiKit.DOM.removeElement = function (node) {
    var self = MochiKit.DOM;
    node = self.getElement(node);
    swapDOM(node, null);
    return node;
};

What do you think?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/mochikit
-~----------~----~----~----~------~----~------~--~---

Reply via email to