rem: for (j=start.value;j<=end.value;j++) { cards[current] = abView.getCardFromRow(j); current++; } 
add: for (j = start.value; j <= end.value; ++j) cards[current++] = abView.getCardFromRow(j); 
context: function GetSelectedAbCards(){  var abView = gAbView;  // if sidebar is open, and addressbook panel is open and focused,  // then use the ab view from sidebar (gCurFrame is from sidebarOverlay.js)  const abPanelUrl = "chrome://messenger/content/addressbook/addressbook-panel.xul";  if (document.getElementById("sidebar-box")) {    if (gCurFrame &&         gCurFrame.getAttribute("src") == abPanelUrl &&        document.commandDispatcher.focusedWindow == gCurFrame.contentDocument.defaultView)     {      abView = gCurFrame.contentDocument.defaultView.gAbView;    }  }  if (!abView)    return null;  var cards = new Array(abView.selection.count);  var i,j;  var count = abView.selection.getRangeCount();  var current = 0;  for (i=0; i < count; i++) {    var start = new Object;    var end = new Object;    abView.selection.getRangeAt(i,start,end);    for (j=start.value;j<=end.value;j++) {      cards[current] = abView.getCardFromRow(j);      current++;    }  }  return cards;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/078edbf3ca565af997d7c1db585aa87a96a6b057/abCommon.js/buggy/mail/components/addrbook/content/abCommon.js