public/javascripts/yui/dragdrop/dragdrop-debug.js
function(node, id) {
            if (this.isHandle(id, node.id)) {
                YAHOO.log("clicked node is a handle", "info", "DragDropMgr");
                return true;
            } else {
                // check to see if this is a text node child of the one we want
                var p = node.parentNode;
                // YAHOO.log("p: " + p);

                while (p) {
                    if (this.isHandle(id, p.id)) {
                        return true;
                    } else {
                        YAHOO.log(p.id + " is not a handle", "info", "DragDropMgr");
                        p = p.parentNode;
                    }
                }
            }

            return false;
        }
function(node, id) {
            if (this.isHandle(id, node.id)) {
                YAHOO.log("clicked node is a handle", "info", "DragDropMgr");
                return true;
            } else {
                // check to see if this is a text node child of the one we want
                var p = node.parentNode;
                // YAHOO.log("p: " + p);

                while (p) {
                    if (this.isHandle(id, p.id)) {
                        return true;
                    } else {
                        YAHOO.log(p.id + " is not a handle", "info", "DragDropMgr");
                        p = p.parentNode;
                    }
                }
            }

            return false;
        }
function ( node , id ) { if ( this . isHandle ( id , node . id ) ) { YAHOO . log ( "clicked node is a handle" , "info" , "DragDropMgr" ) ; return true ; } else { // check to see if this is a text node child of the one we want var p = node . parentNode ; // YAHOO.log("p: " + p); while ( p ) { if ( this . isHandle ( id , p . id ) ) { return true ; } else { YAHOO . log ( p . id + " is not a handle" , "info" , "DragDropMgr" ) ; p = p . parentNode ; } } } return false ; }
Recursively searches the immediate parent and all child nodes for
the handle element in order to determine wheter or not it was
clicked.
@method handleWasClicked
@param node the html element to inspect
@static
Recursively searches the immediate parent and all child nodes for the handle element in order to determine wheter or not it was clicked .