A decade ago , before the world financial crisis of 1997-1998 , capital movements seemed to fit the historic pattern , as funds flowed from Japan and Western nations to '' emerging markets '' in Asia and Latin America .