A continuity property with applications to the topology of 2-manifolds