example/js/svg.js
function(marker, width, height, block) {
    var attr = ['marker']

    // Build attribute name
    if (marker != 'all') attr.push(marker)
    attr = attr.join('-')

    // Set marker attribute
    marker = arguments[1] instanceof SVG.Marker ?
      arguments[1] :
      this.doc().marker(width, height, block)

    return this.attr(attr, marker)
  }
function(marker, width, height, block) {
    var attr = ['marker']

    // Build attribute name
    if (marker != 'all') attr.push(marker)
    attr = attr.join('-')

    // Set marker attribute
    marker = arguments[1] instanceof SVG.Marker ?
      arguments[1] :
      this.doc().marker(width, height, block)

    return this.attr(attr, marker)
  }
function ( marker , width , height , block ) { var attr = [ 'marker' ] // Build attribute name if ( marker != 'all' ) attr . push ( marker ) attr = attr . join ( '-' ) // Set marker attribute marker = arguments [ 1 ] instanceof SVG . Marker ? arguments [ 1 ] : this . doc ( ) . marker ( width , height , block ) return this . attr ( attr , marker ) }
Create and attach markers
Create and attach markers