mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-13 01:30:31 +08:00
removed unused code
This commit is contained in:
parent
e2873032ee
commit
34cac8a4c7
@ -131,7 +131,6 @@ export var tools = new function() {
|
|||||||
return {
|
return {
|
||||||
"setOnUp": function(el, delay, display_callback, execute_callback) {
|
"setOnUp": function(el, delay, display_callback, execute_callback) {
|
||||||
el.execution_timer = null;
|
el.execution_timer = null;
|
||||||
el.activated = false;
|
|
||||||
|
|
||||||
let clear_timer = function() {
|
let clear_timer = function() {
|
||||||
if (el.execution_timer) {
|
if (el.execution_timer) {
|
||||||
@ -144,7 +143,6 @@ export var tools = new function() {
|
|||||||
|
|
||||||
el.onmousedown = el.ontouchstart = function() {
|
el.onmousedown = el.ontouchstart = function() {
|
||||||
clear_timer();
|
clear_timer();
|
||||||
el.activated = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
el.onmouseup = el.ontouchend = function(event) {
|
el.onmouseup = el.ontouchend = function(event) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user