Use root instead of window. initialize currentValues also in pages-all.js because form.js is not called in expert mode

This commit is contained in:
Flavio Copes
2015-08-03 15:43:40 +02:00
parent c2bd95eed7
commit 4f0df9f081
2 changed files with 9 additions and 8 deletions

View File

@@ -114,8 +114,8 @@
scan(this);
this.scanned = true;
//We can now initialize window.currentValues as toggleables are initialized
window.currentValues = getState();
//Refresh root.currentValues as toggleables have been initialized
root.currentValues = getState();
};
Form.factories = {};