rem: Element.collectTextNodesIgnoreClass = function(element, ignoreclass) { var children = $(element).childNodes; var text     = ''; var classtest = new RegExp('^([^ ]+ )*' + ignoreclass+ '( [^ ]+)*$','i');  for (var i = 0; i < children.length; i++) { if(children[i].nodeType==3) { text+=children[i].nodeValue; } else { if((!children[i].className.match(classtest)) && children[i].hasChildNodes()) text += Element.collectTextNodesIgnoreClass(children[i], ignoreclass); } }  return text; 
add: Element.collectTextNodesIgnoreClass = function(element, className) { return $A($(element).childNodes).collect( function(node) { return (node.nodeType==3 ? node.nodeValue : ((node.hasChildNodes() && !Element.hasClassName(node,className)) ? Element.collectTextNodesIgnoreClass(node, className) : '')); }).flatten().join(''); 
context: Element.collectTextNodesIgnoreClass = function(element, ignoreclass) {    var children = $(element).childNodes;    var text     = '';    var classtest = new RegExp('^([^ ]+ )*' + ignoreclass+ '( [^ ]+)*$','i');     for (var i = 0; i < children.length; i++) {      if(children[i].nodeType==3) {        text+=children[i].nodeValue;      } else {        if((!children[i].className.match(classtest)) && children[i].hasChildNodes())          text += Element.collectTextNodesIgnoreClass(children[i], ignoreclass);      }    }     return text;}
meta: 6359	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6359/52d313976f72b3f30c833a7675d476a595bc284d/effects.js/clean/web/js/effects.js