Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9a6e4c6

Browse files
authored
Sync to 2.0.1
1 parent3473aaa commit9a6e4c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/jquery.mobile-events.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* jQuery Mobile Events
33
* by Ben Major
44
*
5-
* Copyright 2011-2017, Ben Major
5+
* Copyright 2011-2019, Ben Major
66
* Licensed under the MIT License:
77
*
88
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -247,7 +247,7 @@
247247
varele_threshold=($this.parent().data('threshold')) ?$this.parent().data('threshold') :$this.data('threshold'),
248248
threshold=(typeofele_threshold!=='undefined'&&ele_threshold!==false&&parseInt(ele_threshold)) ?parseInt(ele_threshold) :settings.taphold_threshold;
249249

250-
settings.hold_timer=window.setTimeout(function(){
250+
$this.data('hold_timer',window.setTimeout(function(){
251251

252252
vardiff_x=(start_pos.x-end_x),
253253
diff_y=(start_pos.y-end_y);
@@ -286,14 +286,14 @@
286286

287287
triggerCustomEvent(thisObject,evt_name,e,touchData);
288288
}
289-
},threshold);
289+
},threshold));
290290

291291
returntrue;
292292
}
293293
}).on(settings.endevent,functiontapHoldFunc2(){
294294
$this.data('callee2',tapHoldFunc2);
295295
$this.data('tapheld',false);
296-
window.clearTimeout(settings.hold_timer);
296+
window.clearTimeout($this.data('hold_timer'));
297297
})
298298
.on(settings.moveevent,functiontapHoldFunc3(e){
299299
$this.data('callee3',tapHoldFunc3);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp