title: can`t add event listener to object. fabricjs
body: <p>can't add event listener to object. Maybe anybody had solved the same problem? I getting the error "Uncaught TypeError: canvas.on is not a function". I also use jQuery, can be problem in this? My code : </p>
  
  <pre><code>window.onload = function() {
         var canvas = new fabric.Element('canvas');
         var imgElement = document.getElementById('uploaded_img');
         var width = imgWidth = imgElement.width;
         var height = imgHeight = imgElement.height;
  
         if(width &gt;= screen.width){
             width = (screen.width - 70);
         }
  
         canvas.setWidth(width);
         canvas.setHeight(height);
  
         var imgInstance = new fabric.Image(imgElement, {
           left: width/2,            
           top: height/2         
         });                     
         canvas.add(imgInstance);
  
         canvas.on('mouse:up',function () {
            alert('test');
         });
  }
  </code></pre>