fix: resolve all circular dependencies (fix #9)

This commit is contained in:
thecodrr
2020-04-12 11:04:30 +05:00
parent 668fe6fd33
commit aaf566924a
12 changed files with 482 additions and 89 deletions

View File

@@ -1,10 +1,9 @@
import Notebooks from "../collections/notebooks";
import Topics from "../collections/topics";
export default class Notebook {
/**
*
* @param {Notebooks} notebooks
* @param {import ('../collections/notebooks').default} notebooks
* @param {Object} notebook
*/
constructor(notebooks, notebook) {
@@ -31,7 +30,7 @@ export default class Notebook {
_toggle(prop) {
return this._notebooks.add({
id: this._notebook.id,
[prop]: !this._notebook[prop]
[prop]: !this._notebook[prop],
});
}