up отличается от down ?const Mouse = (() => {
const up = () => {
return true;
};
this.down = () => {
return true;
};
})();const Mouse = (() => {
this.up = () => {
return true;
};
this.down = () => {
return true;
};
})();up вызывают вот так: up();, а down вызывают вот так: this.down();