-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathko_bindings.js
68 lines (54 loc) · 1.66 KB
/
ko_bindings.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
ko.bindingHandlers.double_tap = {
init: function(element, valueAccessor) {
// console.log("Setting up double_tap");
interact(element).on('doubletap', valueAccessor());
},
dispose: function(element, valueAccessor) {
// console.log("Disposing doubletap");
interact(element).unset();
}
}
ko.bindingHandlers.tap = {
init: function(element, valueAccessor) {
// console.log("Setting up double_tap");
interact(element).on('tap', function(event) {
valueAccessor(event)
});
},
dispose: function(element, valueAccessor) {
// console.log("Disposing doubletap");
interact(element).unset();
}
}
ko.bindingHandlers.right_click = {
init: function(element, valueAccessor) {
$(element).on('contextmenu', function(event) {
//console.log("binding element trying");
valueAccessor()(event);
event.preventDefault(true);
});
},
dispose: function(element, valueAccessor) {
$(element).off('contextmenu', valueAccessor());
}
}
/*
FILE ARCHIVED ON 15:24:27 Apr 13, 2020 AND RETRIEVED FROM THE
INTERNET ARCHIVE ON 16:47:16 Oct 13, 2021.
JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
*/
/*
playback timings (ms):
captures_list: 90.51
exclusion.robots: 0.204
exclusion.robots.policy: 0.19
RedisCDXSource: 1.037
esindex: 0.018
LoadShardBlock: 51.626 (3)
PetaboxLoader3.datanode: 57.833 (4)
CDXLines.iter: 30.588 (3)
load_resource: 44.38
PetaboxLoader3.resolve: 23.83
*/