function _changeLinks(composer, anchors, attributes) {
    var oldAttrs;
    for (var a = anchors.length; a--;) {

      // Remove all old attributes
      oldAttrs = anchors[a].attributes;
      for (var oa = oldAttrs.length; oa--;) {
        anchors[a].removeAttribute(oldAttrs.item(oa).name);
      }

      // Set new attributes
      for (var j in attributes) {
        if (attributes.hasOwnProperty(j)) {
          anchors[a].setAttribute(j, attributes[j]);
        }
      }

    }
  }
function _changeLinks(composer, anchors, attributes) {
    var oldAttrs;
    for (var a = anchors.length; a--;) {

      // Remove all old attributes
      oldAttrs = anchors[a].attributes;
      for (var oa = oldAttrs.length; oa--;) {
        anchors[a].removeAttribute(oldAttrs.item(oa).name);
      }

      // Set new attributes
      for (var j in attributes) {
        if (attributes.hasOwnProperty(j)) {
          anchors[a].setAttribute(j, attributes[j]);
        }
      }

    }
  }
function _changeLinks ( composer , anchors , attributes ) { var oldAttrs ; for ( var a = anchors . length ; a -- ; ) { // Remove all old attributes oldAttrs = anchors [ a ] . attributes ; for ( var oa = oldAttrs . length ; oa -- ; ) { anchors [ a ] . removeAttribute ( oldAttrs . item ( oa ) . name ) ; } // Set new attributes for ( var j in attributes ) { if ( attributes . hasOwnProperty ( j ) ) { anchors [ a ] . setAttribute ( j , attributes [ j ] ) ; } } } }
Changes attributes of links
Changes attributes of links
Change all links in an array of anchors to the new ones