Localizing attractors via a generalized La Salle principle