Преглед на файлове

another fix for #1122

tags/v0.3.2
Big Bad Waffle преди 5 години
родител
ревизия
dae85f533d
променени са 2 файла, в които са добавени 6 реда и са изтрити 2 реда
  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 Целия файл

@@ -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 Целия файл

@@ -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();
}
};
});

Зареждане…
Отказ
Запис