fix visibilitychange on iOS7
3.1.1 changelog