[TC-2142] reinit of values on detachView. Will prevent wrong state when closing/op...

...ening windows

[jira ticket](https://jira.appcelerator.org/browse/TC-2142)