Commit 2984fe79 authored by 汪欢's avatar 汪欢

拼图成功后不能点击图片

parent e7da0e0f
...@@ -166,6 +166,10 @@ ...@@ -166,6 +166,10 @@
GameView.prototype.stop = function () { GameView.prototype.stop = function () {
GAME_TIME = props.GAME_TIME; GAME_TIME = props.GAME_TIME;
clearInterval(this._timer); clearInterval(this._timer);
var len = this.pictures.length;
for (var i = 0; i < len; i++) {
this.pictures[i].removeAllEventListener();
}
}; };
GameView.prototype.createRects = function () { }; GameView.prototype.createRects = function () { };
GameView.prototype.setup = function () { GameView.prototype.setup = function () {
......
This diff is collapsed.
...@@ -123,6 +123,10 @@ export default class GameView extends engine.Container { ...@@ -123,6 +123,10 @@ export default class GameView extends engine.Container {
stop() { stop() {
GAME_TIME = props.GAME_TIME GAME_TIME = props.GAME_TIME
clearInterval(this._timer); clearInterval(this._timer);
let len = this.pictures.length;
for(let i=0;i<len;i++){
this.pictures[i].removeAllEventListener();
}
} }
constructor() { constructor() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment