Yes, RandallB is right, because a detector at the emitter really just turns that into the source. If you still have the same experiment with the source at that point, then you'll still get the same experimental result. If you move the detector closer to one of the slits, then you are in effect doing the experiment with the source at that point, and when you fail to illuminate the other slit with that source, then you will lose your interference pattern.