title: Chaining promises without using 'then' with Q library
body: <p>I'm trying to chain Q promises without 'then', so eventually the chain would look like this:</p>
  
  <pre><code>var foo = new Foo();
  foo
  .method1()
  .method2()
  .method3();
  </code></pre>
  
  <p>How to implement foo's methods so each one is executed once the promise of the previous one is resolved?</p>
  
  <p>This question was marked as exact duplicate of <a href="https://stackoverflow.com/questions/35774777/chaining-promises-without-using-then">this one</a> but I'm trying to implement this using Q lib, not jQuery.</p>