title: Why is html2canvas not defined?
body: <p>If I'm calling this function, getting always "html2canvas is not defined".</p>
  
  <pre><code>makeScreenshot: function(button)
  {
      debugger;
      html2canvas(document.body, {
          Uncaught ReferenceError: html2canvas is not defined
          onrendered: function(canvas) {
              document.body.appendChild(canvas);
          }
      });
  },
  </code></pre>
  
  <p>but why? I have a class of it... like in <a href="http://html2canvas.hertzen.com/examples.html" rel="noreferrer">tutorial</a> written about it. Does anyone have a solution?</p>
  
  <p>I suppose I need to include html2canvas here, but I don't know how.</p>
  
  <pre><code>Ext.define("TEST.controller.Desktop", {
      extend: "Ext.app.Controller",
  
      views: [
          "desktop.Desktop",
          //"desktop.TaskBar",
          "desktop.Toolbar",
          "desktop.DataprovidersDataView",
          "configuration.UploadFileWindow"
      ],
  
  refs: [{
      ref: "viewport",
      selector: "viewport"
  }, {
  </code></pre>