title: Cheerio: SyntaxError: Malformed attribute selector: object global?
body: <p>Here is my code:</p>
  
  <pre><code>var request = require('request'),
      cheerio = require('cheerio'),
      async = require('async');
  
  function updateCars(){
  
      function getReviews(body){
          var $ = cheerio.load(body);
          var year = $(this).find(".field-item").text();
      }
  
      async.series([
          ....
          function(callback) {
              request(site+path, function(err, resp, body){
                  if(!err &amp;&amp; resp.statusCode == 200){
                      var $ = cheerio.load(body);
                      $(".views-row").each(getReviews(body));
                  }
              });
          }
      ]);
  }
  </code></pre>
  
  <p>When I run it in the node console, I get the follwing error:</p>
  
  <pre><code>SyntaxError: Malformed attribute selector: object global]
  </code></pre>
  
  <p>How can I fix that?</p>