|
@ -38,6 +38,7 @@ class Canvas { |
|
|
this.body.view.translation.y = obj.height * 0.5; |
|
|
this.body.view.translation.y = obj.height * 0.5; |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
this.body.emitter.on("setSize", this.setSize.bind(this)); |
|
|
this.body.emitter.on("destroy", () => { |
|
|
this.body.emitter.on("destroy", () => { |
|
|
this.hammerFrame.destroy(); |
|
|
this.hammerFrame.destroy(); |
|
|
this.hammer.destroy(); |
|
|
this.hammer.destroy(); |
|
|