Ver código fonte

another fix for #1122

tags/v0.3.2
Big Bad Waffle 5 anos atrás
pai
commit
dae85f533d
2 arquivos alterados com 6 adições e 2 exclusões
  1. +1
    -1
      src/client/js/components/components.js
  2. +5
    -1
      src/client/js/components/touchMover.js

+ 1
- 1
src/client/js/components/components.js Ver arquivo

@@ -61,7 +61,7 @@ define([

[].forEach.call(arguments, function (t, i) {
//Don't do this for the events module
if (i === arguments.length - 1)
if (i === arguments[2].length - 1)
return;

t.eventList = {};


+ 5
- 1
src/client/js/components/touchMover.js Ver arquivo

@@ -19,7 +19,7 @@ define([

init: function () {
['onTouchStart', 'onTouchMove', 'onTouchEnd', 'onTouchCancel'].forEach(e => {
this.obj.on(e, this[e].bind(this));
this.hookEvent(e, this[e].bind(this));
});

this.obj.on('onShake', this.onShake.bind(this));
@@ -105,6 +105,10 @@ define([
deltaX: dx,
deltaY: dy
});
},

destroy: function () {
this.unhookEvents();
}
};
});

Carregando…
Cancelar
Salvar