Fixed issue that broke the offline dialog

Javascript is not python...
This commit is contained in:
Gina Häußge 2014-09-12 12:21:25 +02:00
parent fe34bdc656
commit 3a0aac3c36

View file

@ -37,7 +37,7 @@ function DataUpdater(allViewModels) {
return;
}
if (viewModel.hasattr("onServerDisconnect")) {
if (viewModel.hasOwnProperty("onServerDisconnect")) {
if (!viewModel.onServerDisconnect()) {
handled = true;
}
@ -71,7 +71,7 @@ function DataUpdater(allViewModels) {
return;
}
if (viewModel.hasattr("onServerDisconnect")) {
if (viewModel.hasOwnProperty("onServerDisconnect")) {
if (!viewModel.onServerDisconnect()) {
handled = true;
}