index.js
function createGlyph(name, collection, id, colors, fileFormat) {
  var glyph = Object.create(Glyph);
  if (!colors) colors = { 'black': 'rgb(0,0,0)' };
  if (!fileFormat) fileFormat = "{0}-{1}-{2}.svg";
  if (!id) id = name;
  glyph.id = id;
  glyph.name = name;
  glyph.collection = collection;
  glyph.url = svgUrl(glyph.name, glyph.collection);
  glyph.colors = colors;
  glyph.exists = null;
  glyph.fileFormat = fileFormat;
  return glyph;
}
function createGlyph(name, collection, id, colors, fileFormat) {
  var glyph = Object.create(Glyph);
  if (!colors) colors = { 'black': 'rgb(0,0,0)' };
  if (!fileFormat) fileFormat = "{0}-{1}-{2}.svg";
  if (!id) id = name;
  glyph.id = id;
  glyph.name = name;
  glyph.collection = collection;
  glyph.url = svgUrl(glyph.name, glyph.collection);
  glyph.colors = colors;
  glyph.exists = null;
  glyph.fileFormat = fileFormat;
  return glyph;
}
function createGlyph ( name , collection , id , colors , fileFormat ) { var glyph = Object . create ( Glyph ) ; if ( ! colors ) colors = { 'black' : 'rgb(0,0,0)' } ; if ( ! fileFormat ) fileFormat = "{0}-{1}-{2}.svg" ; if ( ! id ) id = name ; glyph . id = id ; glyph . name = name ; glyph . collection = collection ; glyph . url = svgUrl ( glyph . name , glyph . collection ) ; glyph . colors = colors ; glyph . exists = null ; glyph . fileFormat = fileFormat ; return glyph ; }
Creates and returns a Glyph instance
Creates and returns a Glyph instance