2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 11:29:03 +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 = {
async init() {
if (this._initialized) return;
this.initConfig();
this.initGlobals();
this.docs = new Observable();
this._initialized = true;
},