2
0
mirror of https://github.com/frappe/books.git synced 2024-11-13 00:46:28 +00:00

Initialize docs in init

This commit is contained in:
Faris Ansari 2018-07-14 21:42:22 +05:30
parent c8fb834e51
commit 9bd1fa77a8

View File

@ -1,9 +1,11 @@
const Observable = require('./utils/observable');
module.exports = { module.exports = {
async init() { async init() {
if (this._initialized) return; if (this._initialized) return;
this.initConfig(); this.initConfig();
this.initGlobals(); this.initGlobals();
this.docs = new Observable();
this._initialized = true; this._initialized = true;
}, },