♻️ Move knockout init to an earlier point

This commit is contained in:
Gina Häußge committed 2020-10-26 15:22:48 +01:00
1 parent 900d7c36d2
commit 0267250af4
1 file changed
+5 -2
+5 -2
View File
@@ -8,6 +8,11 @@ $(function () {
_.mixin({sprintf: sprintf, vsprintf: vsprintf});
//~~ Knockout setup
ko.options.createChildContextWithAs = true;
ko.options.foreachHidesDestroyed = true;
//~~ Logging setup
log.setLevel(CONFIG_DEBUG ? log.levels.DEBUG : log.levels.INFO);
@@ -707,8 +712,6 @@ $(function () {
var bindViewModels = function () {
try {
ko.options.createChildContextWithAs = true;
ko.options.foreachHidesDestroyed = true;
log.info("Going to bind " + allViewModelData.length + " view models...");
_.each(allViewModelData, function (viewModelData) {
try {