title: Callback function for Fabric.js renderAll method?
body: <p>I'm using Fabric.js and need to call a function after renderAll has fully completed. This seems like simple functionality that would exist, but my searches, documentation reading, etc. has come up empty. If anyone has a solution, I'd greatly appreciate it.</p>
  
  <pre><code>canvas.deactivateAll().renderAll();
  // I need a save function called here, after the above has completed
  </code></pre>
  
  <p>I've tried binding to the after:render method of the canvas, but that gets called with each object, rather than all objects.</p>
  
  <pre><code>canvas.on('after:render', function() {
    // call the save function here
  });
  </code></pre>
  
  <p>I suppose what I could do is count the number of canvas objects, then increment a counter on the after:render method, then check to see if the counter === the number of objects, and if it does, then call the save function. That seems rather convoluted to me though.</p>
  
  <p>(As more background, in case there is another way to achieve what I need, I need to save a canvas image, but first need to deselect all objects so the image isn't saved with the handles showing.)</p>