dojo.forEach(items,function(item){ if(item._backup){ item.element = item._backup; item._backup = null; } },this);