an iterator, calls a user-defined handler for each item
mySidebar.forEachItem(function(item){ console.log(item.getId()); });