rem: Element.childrenWithClassName = function(element, className) { return $A($(element).getElementsByTagName('*')).select( function(c) { return Element.hasClassName(c, className) }); 
add: Element.childrenWithClassName = function(element, className, findFirst) { var classNameRegExp = new RegExp("(^|\\s)" + className + "(\\s|$)"); var results = $A($(element).getElementsByTagName('*'))[findFirst ? 'detect' : 'select']( function(c) { return (c.className && c.className.match(classNameRegExp)); }); if(!results) results = []; return results; 
context: Element.childrenWithClassName = function(element, className) {    return $A($(element).getElementsByTagName('*')).select(    function(c) { return Element.hasClassName(c, className) });}
meta: 1782	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1782/a458ebb30ee90b66048c7fd858f5f39957a9be68/effects.js/clean/webapp/sandbox/scripts/effects.js