title: How to call Q promise notify within the promise chain
body: <p>I need helps on <code>notify()</code> within the promise chain.</p>
  
  <p>I have 3 promise base functions <code>connect()</code>, <code>send(cmd)</code>, <code>disconnect()</code>. Now I would like to write another function to wrap those call in following manner with progress notification.</p>
  
  <pre><code>function bombard() {
   return connect()
    .then(function () {
      var cmds = [/*many commands in string*/];
      var promises = _.map(cmds, function (cmd) {
       var deferred = Q.defer();
       deferred.notify(cmd);
       send(cmd).then(function (result) {
        deferred.resovle(result);
       });
       return deferred.promise;
      });
      return Q.all(promises);
    })
   .finally(function () { return disconnect() })
  }
  </code></pre>
  
  <p>Run the function like that</p>
  
  <pre><code>bombard.then(onResolve, onReject, function (obj) {
   console.log(ob);
  });
  </code></pre>
  
  <p>I supposed I will get notification for every command I have sent. However, it does not work as I expected. I get nothing actually. </p>
  
  <p>Although I believe this is due to those notifications havn't propagated to outside promise, I have no idea on how to propagated those notifications on Q or wrapping that promise chain: <code>connect</code>, <code>send</code>, <code>disconnect</code> in a one deferred object.</p>
  
  <p>Thanks</p>