shjs/shjs-0.6-src/scriptaculous-js-1.8.1/lib/prototype.js
function(nodes) {
      if (nodes.length == 0) return nodes;
      var results = [], n;
      for (var i = 0, l = nodes.length; i < l; i++)
        if (!(n = nodes[i])._counted) {
          n._counted = true;
          results.push(Element.extend(n));
        }
      return Selector.handlers.unmark(results);
    }
function(nodes) {
      if (nodes.length == 0) return nodes;
      var results = [], n;
      for (var i = 0, l = nodes.length; i < l; i++)
        if (!(n = nodes[i])._counted) {
          n._counted = true;
          results.push(Element.extend(n));
        }
      return Selector.handlers.unmark(results);
    }
function ( nodes ) { if ( nodes . length == 0 ) return nodes ; var results = [ ] , n ; for ( var i = 0 , l = nodes . length ; i < l ; i ++ ) if ( ! ( n = nodes [ i ] ) . _counted ) { n . _counted = true ; results . push ( Element . extend ( n ) ) ; } return Selector . handlers . unmark ( results ) ; }
filters out duplicates and extends all nodes
filters out duplicates and extends all nodes