♻️ Move knockout init to an earlier point
This commit is contained in:
1 parent
900d7c36d2
commit
0267250af4
1 file changed
+5
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user