context:         this.getBestMatch = function(dds) {            var winner = null;            // Return null if the input is not what we expect            //if (!dds || !dds.length || dds.length == 0) {               // winner = null;            // If there is only one item, it wins            //} else if (dds.length == 1) {            var len = dds.length;            if (len == 1) {                winner = dds[0];            } else {                // Loop through the targeted items                for (var i=0; i<len; ++i) {                    var dd = dds[i];                    // If the cursor is over the object, it wins.  If the                    // cursor is over multiple matches, the first one we come                    // to wins.                    if (dd.cursorIsOver) {                        winner = dd;                        break;                    // Otherwise the object with the most overlap wins                    } else {                        if (!winner ||                            winner.overlap.getArea() < dd.overlap.getArea()) {                            winner = dd;                        }                    }                }            }            return winner;        };
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/dragdrop-debug.js/buggy/www/resources/yui/dragdrop/dragdrop-debug.js