Browse Source

Code cleanup

pull/4302/head
Alex 4 years ago
parent
commit
36c470e07e
  1. 1
      src/canvas/index.js
  2. 1
      src/pages/index.ts

1
src/canvas/index.js

@ -668,7 +668,6 @@ export default class CanvasModule {
* }); * });
*/ */
addFrame(props = {}, opts = {}) { addFrame(props = {}, opts = {}) {
console.log(opts);
return this.canvas.frames.add(new Frame({ ...props }, { em: this.em }), opts); return this.canvas.frames.add(new Frame({ ...props }, { em: this.em }), opts);
} }

1
src/pages/index.ts

@ -93,7 +93,6 @@ export default class PageManager extends ItemManagerModule<Config, Pages> {
constructor(em: EditorModel) { constructor(em: EditorModel) {
super(em, "PageManager", new Pages([]), events); super(em, "PageManager", new Pages([]), events);
bindAll(this, "_onPageChange"); bindAll(this, "_onPageChange");
this.getAll;
const model = new Model({ _undo: true } as any); const model = new Model({ _undo: true } as any);
this.model = model; this.model = model;
this.pages.on("reset", (coll) => coll.at(0) && this.select(coll.at(0))); this.pages.on("reset", (coll) => coll.at(0) && this.select(coll.at(0)));

Loading…
Cancel
Save