code: function() {
  				var invHashes = {};
  				if (allSelected) {
  					unselectAll();
  				} else if (! Object.keys(selectedFiles).length) {
  					selectAll();
  				} else {
  					$.each((incHashes || cwdHashes), function(i, h) {
  						var itemNode = $('#'+fm.cwdHash2Id(h));
  						if (! selectedFiles[h]) {
  							invHashes[h] = true;
  							itemNode.length && itemNode.trigger(evtSelect);
  						} else {
  							itemNode.length && itemNode.trigger(evtUnselect);
  						}
  					});
  					selectedFiles = invHashes;
  					trigger();
  				}
  			}
docs: fm.time('cwdLoad');