title: How do you get the id from the fabricjs canvas object?
body: <p>How do I get the id element from a fabricjs canvas object? I understand I pass in an ID into the constructor when I make a new one, but after it has been constructed. How do I get the id from the canvas object I just created?</p>
  
  <p>It seems like such a simple thing, but yet I can't find it.</p>
  
  <pre><code>var newCanvas = new fabric.Canvas("myId");
  var newCanvasId = newCanvas.id;    //doesn't work, undefined
  </code></pre>