demos/Collage/fabric.js
function(element) {
      this.setElement(fabric.util.getById(element));
      fabric.util.addClass(this.getElement(), fabric.Image.CSS_CANVAS);
    }
function(element) {
      this.setElement(fabric.util.getById(element));
      fabric.util.addClass(this.getElement(), fabric.Image.CSS_CANVAS);
    }
function ( element ) { this . setElement ( fabric . util . getById ( element ) ) ; fabric . util . addClass ( this . getElement ( ) , fabric . Image . CSS_CANVAS ) ; }
The Image class's initialization method. This method is automatically
called by the constructor.
@method _initElement
@param {HTMLImageElement|String} el The element representing the image
The Image class s initialization method . This method is automatically called by the constructor .