title: Node-Webkit: How to minimize the window?
body: <p>I am wondering how to minimize the window. The documentation is kinda confusing.
  Closing the window is no problem but minimizing won't work this way:</p>
  
  <p><code>document.getElementById('close').addEventListener('click', function() {
          window.close();
      }, false);</code></p>
  
  <p>The same goes for this method:</p>
  
  <pre><code>var gui = require('nw.gui');
  var win = gui.Window.get();
  
  document.getElementById('minimize').addEventListener('click', function() {
  win.window.minimize(); }, false);
  </code></pre>
  
  <p>What am I doing wrong?</p>