title: YDN-DB with multiple deferred
body: <p>Im trying to use multiple deferred with jquery $.when but so far no luck, this is my code:</p>
  
  <pre><code>var req = $.when(db.count('items'),db.values('items'),db.get('config', 1));
  
  req.done(function(count,r,config) {
    var currency = config.currency;
    if(count &gt; 0){
      var n = r.length;
      for (var i = 0; i &lt; n; i++) {                   
        var id    = r[i].id;
        var itemId = r[i].itemId;
        console.log('ID: '+id+' itemID: '+itemId+' Currency: '+currency);
      }
    }
  });
  </code></pre>
  
  <p>My sample isn't working so hope you guys can help me, I searched everywhere for a solution. Thanks</p>