title: How to get targeted element's attribute value in fabric.js
body: <pre><code>(function() {   
     var canvas = this.__canvas = new fabric.Canvas('c');  
     fabric.Object.prototype.transparentCorners = false;                 
     canvas.on({        
       'object:selected': function(e) {  
       e.target.opacity = 0.5;  
       //find which object is selected  
       console.log(e.target);  
       console.log(e.target.get('type'));  
       //How to get targeted element attribute value   
       //??????????????        
       },    
    'object:modified': function(e) {    
     e.target.opacity = 1;  
      }
   });
  fabric.Image.fromURL('img/shoes-hills.png', function(oImg1) {  
   // scale image down, and flip it, before adding it onto canvas    
      oImg1.perPixelTargetFind = true;        
      canvas.add(oImg1);  
    });  
  })();  
  </code></pre>
  
  <p>How to get targeted element's attribute value in fabric.js.
  Here I get type of target element but I want attribute value(source of image) for that image element for identify which image element selected in this canvas.</p>