rem: var currentSet = toolbar.getAttribute("currentset"); if (currentSet == "__empty") continue; else if (!currentSet) currentSet = toolbar.getAttribute("defaultset");  var ids = currentSet.split(","); for (var k = 0; k < ids.length; ++k) currentItems[ids[k]] = 1; 
add: var child = toolbar.firstChild; while (child) { if (isToolbarItem(child)) currentItems[child.id] = 1; child = child.nextSibling; } 
context: function getCurrentItemIds(){  var currentItems = {};  for (var i = 0; i < gToolbox.childNodes.length; ++i) {    var toolbar = gToolbox.childNodes[i];    if (isCustomizableToolbar(toolbar)) {      var currentSet = toolbar.getAttribute("currentset");      if (currentSet == "__empty")        continue;      else if (!currentSet)        currentSet = toolbar.getAttribute("defaultset");            var ids = currentSet.split(",");      for (var k = 0; k < ids.length; ++k)        currentItems[ids[k]] = 1;    }  }  return currentItems;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/fd90df9d6094d33d449eea67c3cbc73c18dc3bef/customizeToolbar.js/buggy/toolkit/content/customizeToolbar.js