That seems to work OK for the first time I measure. When I measure a 2nd time, it's still doing the identify, even though I think I have it turned off. I have my identifyHandler defined as pausable, so I don't have keep destroying it.
var identifyHandler = on.pausable(map, 'click', runIdentifies);
I added lines to suspend my identify, but that didn't make a difference.
function windowPop(){
if (measurement.area.checked || measurement.distance.checked || measurement.location.checked){
console.log("measurement checked");
map.setInfoWindowOnClick(false);
identifyHandler.pause();
} else {
console.log("measurement not checked");
map.setInfoWindowOnClick(true);
identifyHandler.resume();
}
}