lib/fabric_with_gestures.js
/**
   * @private
   * to support IE8 missing getElementById on SVGdocument
   */
@private
to support IE8 missing getElementById on SVGdocument
@private to support IE8 missing getElementById on SVGdocument
function elementById(doc, id) {
    var el;
    doc.getElementById && (el = doc.getElementById(id));
    if (el) {
      return el;
    }
    var node, i, idAttr, nodelist = doc.getElementsByTagName('*');
    for (i = 0; i < nodelist.length; i++) {
      node = nodelist[i];
      if (idAttr === node.getAttribute('id')) {
        return node;
      }
    }
  }
function elementById ( doc , id ) { var el ; doc . getElementById && ( el = doc . getElementById ( id ) ) ; if ( el ) { return el ; } var node , i , idAttr , nodelist = doc . getElementsByTagName ( '*' ) ; for ( i = 0 ; i < nodelist . length ; i ++ ) { node = nodelist [ i ] ; if ( idAttr === node . getAttribute ( 'id' ) ) { return node ; } } }
@private
 to support IE8 missing getElementById on SVGdocument
@private to support IE8 missing getElementById on SVGdocument