dbankier/TiShadow — pull request #227 by FokkeZB (2014-02-03 08:40:23+00:00)
Title: Re-introducing an app event for apps to do cleanup

Until Appcelerator fixes app-events not being cleared on restart, apps needs to know when restart happens so they can clean up:

```
if (!ENV_PRODUCTION && Ti.Shadow) {
Ti.App.addEventListener('tishadow:close', function() {
Ti.App.removeEventListener('resumed', onResume);
});
}
```