Fixed issue that broke the offline dialog

Javascript is not python...
This commit is contained in:
Gina Häußge committed 2014-09-12 12:21:25 +02:00
1 parent fe34bdc656
commit 3a0aac3c36
1 file changed
+2 -2
+2 -2
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;
}